feat(design-system): composants shadcn input/label/separator/avatar/progress — tokens Direction H (Sprint 0.5 étape 5)

This commit is contained in:
Hermann_Kitio 2026-04-18 01:04:52 +03:00
parent dfe9fee56a
commit 323b48c7cb
7 changed files with 1971 additions and 3 deletions

View file

@ -0,0 +1,29 @@
import * as React from "react"
import { Progress as ProgressPrimitive } from "radix-ui"
import { cn } from "@/shared/lib/utils"
function Progress({
className,
value,
...props
}: React.ComponentProps<typeof ProgressPrimitive.Root>) {
return (
<ProgressPrimitive.Root
data-slot="progress"
className={cn(
"relative h-2 w-full overflow-hidden rounded-full bg-expria/20",
className
)}
{...props}
>
<ProgressPrimitive.Indicator
data-slot="progress-indicator"
className="h-full w-full flex-1 bg-expria transition-all"
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
/>
</ProgressPrimitive.Root>
)
}
export { Progress }