

Every state


default


focus


filled


clear-focus


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "company" | Input id; label, description and error point at it. |
| name | string | "company" | Form field name. |
| label | string | "Company name" | Visible label; the clear button reads "Clear <label>". |
| description | string | – | Help text under the field. |
| placeholder | string | – | Placeholder inside the field. |
| defaultValue | string | – | Starting value. |
| onValueChange | (value: string) => void | – | Called on every change, and with an empty string when cleared. |
| required | boolean | – | Sets the required attribute. |
| disabled | boolean | – | Disables the field and hides the clear button. |
| error | string | – | Error message; makes the field invalid and links the message to it. |
| className | string | – | Extra classes on the outer Field. |


