diff options
| author | l3wdfut4pwr l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-01-28 16:57:26 +0200 |
|---|---|---|
| committer | l3wdfut4pwr l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-01-28 16:57:26 +0200 |
| commit | b7af1778397c31049ed058dbe5787654514d53ac (patch) | |
| tree | 554a6ddd3a5b2c732a33d5e6d1e73a3cb14c89c4 /src/components/ui/label.tsx | |
| parent | d2d202362688626dd37394460d5c1560f99b93e4 (diff) | |
add modal tabs
Diffstat (limited to 'src/components/ui/label.tsx')
| -rw-r--r-- | src/components/ui/label.tsx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx new file mode 100644 index 0000000..fb5fbc3 --- /dev/null +++ b/src/components/ui/label.tsx @@ -0,0 +1,24 @@ +"use client" + +import * as React from "react" +import * as LabelPrimitive from "@radix-ui/react-label" + +import { cn } from "@/lib/utils" + +function Label({ + className, + ...props +}: React.ComponentProps<typeof LabelPrimitive.Root>) { + return ( + <LabelPrimitive.Root + data-slot="label" + className={cn( + "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", + className + )} + {...props} + /> + ) +} + +export { Label } |
