UNPKG

xlibs-components

Version:

Modern React component library with Aceternity, MagicUI, and ShadCN components for building beautiful web applications

10 lines (9 loc) 617 B
// Label component extends from shadcnui - https://ui.shadcn.com/docs/components/label "use client"; import { jsx as _jsx } from "react/jsx-runtime"; import * as React from "react"; import * as LabelPrimitive from "@radix-ui/react-label"; import { cn } from '../../lib/utils.js'; const Label = React.forwardRef(({ className, ...props }, ref) => (_jsx(LabelPrimitive.Root, { ref: ref, className: cn("text-sm font-medium text-black dark:text-white leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className), ...props }))); Label.displayName = LabelPrimitive.Root.displayName; export { Label };