diff options
| author | Arslaan Pathan <[email protected]> | 2026-08-31 17:00:12 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-08-31 17:00:12 +1200 |
| commit | 5936aedd3d853514a31ebece23175255fb2415c3 (patch) | |
| tree | 829560cffbbb4fde805319c08f984667e498eaf5 /components/ui/label.tsx | |
| download | the-agentic-cloud-5936aedd3d853514a31ebece23175255fb2415c3.tar.xz the-agentic-cloud-5936aedd3d853514a31ebece23175255fb2415c3.zip | |
Initial commit
Diffstat (limited to 'components/ui/label.tsx')
| -rw-r--r-- | components/ui/label.tsx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/components/ui/label.tsx b/components/ui/label.tsx new file mode 100644 index 0000000..74da65c --- /dev/null +++ b/components/ui/label.tsx @@ -0,0 +1,20 @@ +"use client" + +import * as React from "react" + +import { cn } from "@/lib/utils" + +function Label({ className, ...props }: React.ComponentProps<"label">) { + return ( + <label + 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 } |
