diff options
Diffstat (limited to 'cmd/mirumd/web/components/ui/label.tsx')
| -rw-r--r-- | cmd/mirumd/web/components/ui/label.tsx | 25 | +25 −0 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cmd/mirumd/web/components/ui/label.tsx b/cmd/mirumd/web/components/ui/label.tsx new file mode 100644 --- /dev/null +++ b/cmd/mirumd/web/components/ui/label.tsx @@ -0,0 +1,25 @@ +// Copyright (c) 2023 shadcn +// SPDX-License-Identifier: MIT + +import * as React from "react" +import { Label as LabelPrimitive } from "radix-ui" + +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 } |
