Input
atomsSingle-line text input on a native <input>: sizes, pill shape, leading icon, clear button, mono, and Enter submit.
Profile settings form
Field wires the label, hint and error; Input takes bind:value, icon, mono and type.
Shown on your profile and in mentions.
Sizes, shapes and widths
size sm/md/lg, shape="pill", mono, width pins a fixed width, grow fills the row.
States
disabled, readonly, invalid, a filled clearable input, a long value that scrolls and a native password field.
Enter to submit
onenter fires with the value on Enter; onclear fires when the clear button empties it.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
mono | boolean | false | |
size | ControlSize | — | |
grow | boolean | false | Fill the available width of a flex/Cluster row (flex: 1) instead of needing a raw `style="flex:1"` at the call-site. |
invalid | boolean | false | Error state: danger border + aria-invalid (also styles if a consumer sets aria-invalid directly). |
icon | IconName | — | Leading icon, inset inside the control. |
clearable | boolean | false | Trailing clear (✕) button shown while the value is non-empty. |
onclear | () => void | — | |
clearLabel | string | 'Clear' | |
shape | 'square' | 'pill' | 'square' | |
width | string | — | Fixed width (also `flex: none` so flex rows don't stretch it). |
onenter | (value: string) => void | — | Fires with the current value on Enter. |
onsubmit | (value: string) => void | — | Alias of `onenter`; both fire when given. |
id | string | — | |
aria-describedby | string | null | — | |
aria-invalid | HTMLInputAttributes['aria-invalid'] | — | |
class | string | '' | |
value bindable | HTMLInputAttributes['value'] | — | |
el bindable | HTMLInputElement | null | null |