Auto Complete
A type-to-filter combobox. Focus stays on the input; typing filters options by label without changing the committed value — a selection only commits when an option is clicked or Enter is pressed on the highlighted option.
Usage
import { AutoComplete } from '@mav-labs-inc/mavkit-react'
<AutoComplete
label="Country"
options={[{ value: 'us', label: 'United States' }, { value: 'ca', label: 'Canada' }]}
onSelectionChange={onChange}
/>Examples
Basic
- United States
- Canada
- Mexico
- United Kingdom
- Germany
- France
- Japan
With a default value and validation
- United States
- United States
- Canada
- Mexico
- United Kingdom
- Germany
- France
- Japan
Props
Last updated on