Components
Progress
Shows how far a task has got, or that it is running when the amount is unknown.
Ombelle · light
Progress
Installing components64%
Consumer matrix, 16 of 40
Contrast checks8 / 8
Syncing presets
Installation
Run in a project initialized with an Ombelle preset (see Get started). The component uses the saved project preset. Run the command from your app folder; it shows the changes and asks before writing.
pnpm dlx @ombelle-ui/cli@1.1.2 add progressAdds components/ui/progress.tsx and installs react, @radix-ui/react-progress, clsx, tailwind-merge with lifecycle scripts disabled. This is a client component.
In a liquid glass project the plan adds a notice that accessibility is not guaranteed, because text contrast depends on the background behind the glass.
Usage
example.tsx
import { Progress } from '@/components/ui/progress'
export function InstallProgress() {
return (
<>
<p id="install-label">Installing components</p>
<Progress value={64} aria-labelledby="install-label" />
</>
)
}API and states
- API
- value (null for indeterminate), max, getValueLabel, size (sm, default, lg), tone (default, success, warning, destructive), shape (bar, circle); ProgressLabel, ProgressValue (format)
- Minimum states
- Loading, complete, indeterminate
- Native basis
- Reviewed Radix progress primitive
- Styles
- Stable in Ombelle, Papier, Organic, Retro futurism, minimalist, neo-brutalism and flat, light and dark. Liquid glass: stable, accessibility not guaranteed.