Skip to content
nexubDesign System
v2.4.0

Components · Form Controls

Autocomplete

StableSince v0.0.1

Type-to-search input with matching options dropdown.

import { Autocomplete } from '@nexub/react';

Examples

Default

With loading state

Custom empty text

Props

Props
PropTypeDefaultDescription
optionsrequired{ value: string; label: string }[]—Array of options available for selection.
valuestring—The controlled selected value.
onValueChange(value: string) => void—Callback fired when the selected value changes.
placeholderstring—Placeholder text shown in the input when empty.
emptyTextstring—Text shown when no options match the current search query.
loadingboolean—Shows a loading indicator while options are being fetched.

On iOS & Android