Label
Form label with optional required/optional indicator.
Variants
import { Label } from '@canarist/ui'
<Label>Default label</Label>
<Label required>Required field</Label>
<Label optional>Optional field</Label>Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| required | boolean | — | Show a red asterisk after the label text. |
| optional | boolean | — | Show "(optional)" after the label text. |