Inputs
Label
A form label with an optional required marker, meant to pair with Input, Select, Textarea, Checkbox, Radio, or Switch.
LabelPreview
Usage
tsx
import { Label, Input } from "@vesture/react";
<Label htmlFor="email" required>Email</Label>
<Input id="email" type="email" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| required | boolean | — | Appends an aria-hidden asterisk. |
| disabled | boolean | — | Sets data-disabled for styling. |
| ...rest | LabelHTMLAttributes<HTMLLabelElement> | — | Spread onto the <label> — htmlFor, etc. |