progress
shipbase-ui/progressFreeComponent
shipbase/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/shipbase/ui/next/apps/www/public/r/react/progress.jsonSource
1"use client"23import * as React from "react"45import { Progress as ProgressPrimitive } from "@ark-ui/react/progress"67import { cn } from "@/lib/utils"89const Progress = ProgressPrimitive.Root1011const ProgressCircle = React.forwardRef<12 React.ElementRef<typeof ProgressPrimitive.Circle>,13 ProgressPrimitive.CircleProps14>(({ className, ...props }, ref) => (15 <ProgressPrimitive.Circle16 ref={ref}17 className={cn("[--size:40px] [--thickness:4px]", className)}18 {...props}19 />20))21ProgressCircle.displayName = "ProgressCircle"2223const ProgressCircleRange = React.forwardRef<24 React.ElementRef<typeof ProgressPrimitive.CircleRange>,25 ProgressPrimitive.CircleRangeProps26>(({ className, ...props }, ref) => (27 <ProgressPrimitive.CircleRange28 ref={ref}29 className={cn("stroke-primary transition-all", className)}30 {...props}31 />32))33ProgressCircleRange.displayName = "ProgressCircleRange"3435const ProgressCircleTrack = React.forwardRef<36 React.ElementRef<typeof ProgressPrimitive.CircleTrack>,37 ProgressPrimitive.CircleTrackProps38>(({ className, ...props }, ref) => (39 <ProgressPrimitive.CircleTrack40 ref={ref}41 className={cn("stroke-secondary", className)}42 {...props}43 />44))45ProgressCircleTrack.displayName = "ProgressCircleTrack"4647const ProgressContext = ProgressPrimitive.Context4849const ProgressLabel = React.forwardRef<50 React.ElementRef<typeof ProgressPrimitive.Label>,51 ProgressPrimitive.LabelProps52>(({ className, ...props }, ref) => (53 <ProgressPrimitive.Label54 ref={ref}55 className={cn(56 "select-none font-medium text-foreground text-sm leading-4 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",57 className58 )}59 {...props}60 />61))62ProgressLabel.displayName = "ProgressLabel"6364const ProgressRange = React.forwardRef<65 React.ElementRef<typeof ProgressPrimitive.Range>,66 ProgressPrimitive.RangeProps67>(({ className, ...props }, ref) => (68 <ProgressPrimitive.Range69 ref={ref}70 className={cn(71 "h-full w-full flex-1 bg-primary transition-all",72 "data-[state=indeterminate]:repeat-infinite data-[state=indeterminate]:slide-in-from-left data-[state=indeterminate]:slide-out-to-right data-[state=indeterminate]:animate-[in-out_1s_ease-in-out]",73 className74 )}75 {...props}76 />77))78ProgressRange.displayName = "ProgressRange"7980const ProgressRootProvider = ProgressPrimitive.RootProvider8182const ProgressTrack = React.forwardRef<83 React.ElementRef<typeof ProgressPrimitive.Track>,84// … truncated
What it pulls in
npm packages
Files it writes
More from shipbase/ui
All 32 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shipbase/ui | Components | Free | 2 deps | |
| avataravatar | shipbase/ui | Components | Free | 1 dep | |
| badgebadge | shipbase/ui | Components | Free | 2 deps | |
| buttonbutton | shipbase/ui | Components | Free | 2 deps | |
| cardcard | shipbase/ui | Components | Free | 1 dep | |
| checkboxcheckbox | shipbase/ui | Components | Free | 2 deps | |
| collapsiblecollapsible | shipbase/ui | Components | Free | 1 dep | |
| comboboxcombobox | shipbase/ui | Components | Free | 2 deps |
