A progress bar in HTML represents a percentage of certain milestones during a task. HTML can be used to create progress bars that indicate a task's completion.
Hover (or focus) the bar to see the value tip at the leading edge of the fill. Use [showTip]="false" to hide it.
Use size="" and define size with supported "sm", "lg", "xl" sizes.
Use attribute color to control the color of the progress bar. Supported colors are "primary", "danger", "warning", "success" and "accent"
Run the following command to add this component to your project:
npx base-ui-cli add progress
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.
npx -y base-ui-mcp
Base UI provides standalone components. Import the exact elements you want to use into your component.
// Install: npx base-ui-cli add progress
// Paths are relative to aliases.components (default: src/app/components)
import { ProgressComponent } from './progress/progress.component';
@Component({
selector: 'app-your-component',
imports: [
ProgressComponent
],
template: `...`
})
export class YourComponent {} API for progress — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
base-progress | value | number | 0 | Current progress value from 0 to 100. |
base-progress | color | ProgressColor | 'primary' | Semantic color of the fill. |
base-progress | size | ProgressSize | 'md' | Height / thickness of the bar. |
base-progress | showTip | boolean | true | When true (default), hovering the bar shows the value in a tip at the fill edge. |
base-progress | class | string | '' | Extra host classes merged via `cn()`. |
Content