UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Radix UI. TypeScript-first, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

20 lines (19 loc) • 829 B
"use client"; import { jsx } from "react/jsx-runtime"; import { Indicator, Root } from "@radix-ui/react-progress"; import { forwardRef } from "react"; import { cn } from "../../lib/utilities.js"; const Progress = /*#__PURE__*/ forwardRef(({ className, value, ...props }, ref)=>/*#__PURE__*/ jsx(Root, { ref: ref, className: cn("relative h-2 w-full overflow-hidden rounded-full bg-neutral-900/20 dark:bg-neutral-50/20", className), ...props, children: /*#__PURE__*/ jsx(Indicator, { className: "h-full w-full flex-1 bg-neutral-900 transition-all dark:bg-neutral-50", style: { transform: `translateX(-${100 - (value || 0)}%)` } }) })); Progress.displayName = Root.displayName; export { Progress }; //# sourceMappingURL=progress.js.map