progress
9ui/progressFreeComponent
9ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by 9ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://9ui.dev/r/progress.jsonSource
1import * as React from "react"2import { Progress as BaseProgress } from "@base-ui/react/progress"34import { cn } from "@/lib/utils"56function Progress({7 className,8 children,9 ...props10}: React.ComponentProps<typeof BaseProgress.Root>) {11 return (12 <BaseProgress.Root data-slot="progress" className="relative" {...props}>13 <BaseProgress.Track14 data-slot="progress-track"15 className={cn(16 "bg-primary/20 block h-2 w-full overflow-hidden rounded-full",17 className18 )}19 >20 <BaseProgress.Indicator21 data-slot="progress-indicator"22 className="bg-primary block h-full w-full transition-all"23 />24 </BaseProgress.Track>25 {children}26 </BaseProgress.Root>27 )28}2930function ProgressValue({31 className,32 ...props33}: React.ComponentProps<typeof BaseProgress.Value>) {34 return (35 <BaseProgress.Value36 data-slot="progress-value"37 className={cn(38 "text-foreground mt-2 flex justify-end text-sm font-medium",39 className40 )}41 {...props}42 />43 )44}4546export { Progress, ProgressValue }
Files it writes
More from 9ui
All 56 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | 9ui | Components | Free | no deps | |
| alertalert | 9ui | Components | Free | no deps | |
| alert-dialogalert-dialog | 9ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | 9ui | Components | Free | no deps | |
| autocompleteautocomplete | 9ui | Components | Free | no deps | |
| avataravatar | 9ui | Components | Free | no deps | |
| badgebadge | 9ui | Components | Free | no deps | |
| breadcrumbsbreadcrumbs | 9ui | Components | Free | no deps |
