Label
Label is a component component that provides label functionality.
Active
Installation
npm install @your-design-system/labelimport { Label } from "@/components/ui/label"
export function LabelDemo() {
return (
<Label children={"children"}>
{/* Content */}
</Label>
)
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
children* | string | - | The content to display inside the component. |
htmlFor | string | - | The htmlFor prop for the component. |
Styling
The component uses Tailwind CSS classes for styling. You can customize the appearance by overriding these classes.
Base Classes
text-smfont-mediumleading-nonepeer-disabled:cursor-not-allowedpeer-disabled:opacity-70Design System Compliance
This component is validated against atomic design principles and foundation token usage.
✓ Atomic Design Compliant
This component follows atomic design principles and properly uses foundation tokens.
On This Page