Label
stable llms.txtSemantic label component for form inputs with enhanced accessibility and interactive hit area.
Installation
bash
ts
Preset Configuration
Customize the appearance using presets
Examples
Explore different variations and use cases
Basic Label
Label associated with a form control
Required Label
Label with required indicator
Disabled Label
Label for a disabled control
API Reference
Accessibility
- Always use for attribute to associate with input
- Place labels consistently (before or after inputs)
- Make required fields clear to screen readers
- Use semantic label element
- Ensure sufficient color contrast