AsterUIDocsv1.0.2

Docs / Component reference

Combobox

Start typing to narrow a list, then choose a result. The caller can also allow a new value.

Combobox example

Install

sh
npx @fierst/ui@1.0.2 add combobox

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/combobox: Combobox.

Download the registry source for combobox 1.0.2.

API contracts

ts
export function* Combobox(
  props: {
    label?: string;
    options: readonly string[];
    value?: string;
    defaultValue?: string;
    placeholder?: string;
    creatable?: boolean;
    onChange?: (value: string) => void;
    class?: string;
  },
  ctx: Ctx,
)