UI Components
Label
Accessible form label built on Radix UI with required indicator and hint text.
Quick Preview
Installation
npm install @radix-ui/react-label
// Copy fromsrc/components/ui/Label.tsx
Examples
Required Field
With Hint
Form row
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
required | boolean | - | Show red asterisk for required fields |
hint | string | - | Helper text shown after the label |
htmlFor | string | - | ID of the associated form element |
className | string | - | Additional CSS classes |