A raised, glossy bar. The fill is scaled with a transform and has a moving sheen. Leave the value out for an indeterminate bar.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | 0 to max. Omit for indeterminate. | |
| max | number | 100 | Value at which the bar is full. |
| label | string | Text above the bar. Also names it for screen readers. | |
| showValue | boolean | true | Show the percentage next to the label. |
| size | "sm" | "md" | "lg" | "md" | Bar thickness: "sm", "md" or "lg". |
| className | string | Extra classes added to the outer element. |