- Accordion
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Checkbox
- Combobox
- Container
- CurrencyInput
- DistributionSlider
- Drawer
- Dropdown
- Grid
- Heading
- Image
- Input
- InputGroup
- Label
- Logo
- MapPin
- Modal
- NativeSelect
- NumberInput
- OtpInput
- PhoneInput
- Popover
- Progress
- PropertyCalendar
- RadioGroup
- RadioGroupCards
- ResponsiveModal
- ScrollArea
- SearchBar
- SearchBarFallback
- SearchInput
- Select
- Separator
- Spinner
- Switch
- Tabs
- Text
- Textarea
- Toast
- Toggle
- ToggleGroup
- Tooltip
Label
Accessible label component for form controls with consistent styling
pnpm add @wandercom/design-system-web
import { Label } from '@wandercom/design-system-web/ui/label';
export function Example() {
return <Label htmlFor="email">Email address</Label>;
}Loading example...
htmlFor?:
string
ID of the form control this label is associated with.
className?:
string
Additional CSS classes to apply.
children:
React.ReactNode
The label text or content.
The Label component is built on Radix UI Label primitive and includes proper accessibility features out of the box. It automatically associates with form controls when using the htmlFor prop, enabling screen readers to announce the label when the control receives focus.