Input
Three sizes, plus search and file types.
Installation
Usage
Examples
Sizes
Small, default, and large heights.
Search
Search type with native cancel styling.
File upload
File type with a styled picker button.
Disabled and invalid
Dimmed when disabled, red ring when aria-invalid.
API reference
Input
| Prop | Type | Default |
|---|---|---|
sizeHeight preset, or a number passed to the native width attribute. | "sm" | "default" | "lg" | number | "default" |
unstyledRender without the container frame styles. | boolean | false |
typeNative input type. "search" and "file" get dedicated styling. | string | - |
placeholderHint text shown while empty. | string | - |
disabledDisable interaction. Renders dimmed. | boolean | false |
readOnlyShow value without allowing edits. | boolean | false |
defaultValueInitial value when uncontrolled. | string | - |
valueControlled value. Use with onChange. | string | - |
onChangeCalled when the value changes. | (event) => void | - |