Primitives/Label
Label
Form label, sentence case, text-xs medium.
- Version
- 1.0.1
- Tier
- Primitive
- Updates taken
- Minor and patch
- Files
- 1
Preview
Install
In a project already set up on the contract, which is what registers the @ja3dan prefix. If yours isn't, set it up first.
bunx shadcn@latest add @ja3dan/label Source
What lands in your project, read from the published item rather than the working tree.
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-xs leading-4 font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className, )} {...props} /> );}export { Label };