Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / packages/design-system/components/shadcn/progress.tsx |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | packages/design-system/components/shadcn/progress.tsx |
| Original SHA-256 | 8a9d636cffdc5e322cf793076b4d888e599c09606c4d5766e010283c0b65a761 |
| Git blob SHA | c9b59f98ef08c446b9a08dbcf9e6e50b3aa1e6e8 |
| Reading-copy SHA-256 | 8a9d636cffdc5e322cf793076b4d888e599c09606c4d5766e010283c0b65a761 |
Recovered source transcript
Download complete source text ↓29 lines · 0.7 KB
'use client'
import * as ProgressPrimitive from '@radix-ui/react-progress'
import * as React from 'react'
import { cn } from '../../lib/utils'
function Progress({
className,
value,
...props
}: React.ComponentProps<typeof ProgressPrimitive.Root>) {
return (
<ProgressPrimitive.Root
data-slot="progress"
className={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}
{...props}
>
<ProgressPrimitive.Indicator
data-slot="progress-indicator"
className="bg-primary h-full w-full flex-1 transition-all"
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
/>
</ProgressPrimitive.Root>
)
}
export { Progress }