--- title: Progress description: Displays the status of a task that takes a long time. links: doc: https://base-ui.com/react/components/progress#api-reference --- ## Installation CLI Manual ```bash npx shadcn@latest add @coss/progress ``` Install the following dependencies: ```bash npm install @base-ui/react ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Progress, ProgressLabel, ProgressValue, } from "@/components/ui/progress" ``` ```tsx ``` Note: If you render children inside `Progress`, you must also include `ProgressTrack` and `ProgressIndicator` inside it. Without them, the bar will not display. When no children are provided, a default track and indicator are rendered for you. ## API Reference ### Progress Root component. Styled wrapper for `Progress.Root` from Base UI. When no children are provided, automatically renders a track and indicator. ### ProgressTrack Track container for the progress indicator. Styled wrapper for `Progress.Track` from Base UI. ### ProgressIndicator Visual indicator showing the current progress. Styled wrapper for `Progress.Indicator` from Base UI. ### ProgressLabel Label text for the progress bar. Styled wrapper for `Progress.Label` from Base UI. ### ProgressValue Displays the current value. Styled wrapper for `Progress.Value` from Base UI. ## Examples ### With Label and Value ### With Formatted Value