Input
Displays a form input field or a component that looks like an input field.
Installation
Examples
Without Border
Search Input
API Reference
Input
An Input extends the HTML <input> component. We list the extended properties only.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "plain" | "flat" | "default" | The visual style of the input. |
search | boolean | - | Whether the search icon is shown. |
clear | boolean | - | Whether the clear button is shown. |
endIcon | React.ReactNode | - | An icon at the end of the input. |
onCancel | () => void | - | Handler that is called when the clear button is clicked. |