Label that names it.<Stack gap="xs" style={{ maxWidth: "20rem" }}>
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" placeholder="you@example.com" />
</Stack>import { Input, Label, Stack } from "@dash/server";Prop | Type | Description |
|---|---|---|
| placeholder | string | |
| value | string | number | |
| defaultValue | string | number | |
| disabled | boolean | |
| onChange | (e: React.ChangeEvent<HTMLInputElement>) => void | |
| onKeyDown | (e: React.KeyboardEvent<HTMLInputElement>) => void | |
| onBlur | (e: React.FocusEvent<HTMLInputElement>) => void | |
| aria-invalid | boolean |
Prop | Type | Description |
|---|---|---|
| htmlFor | string |