Skip to content
Hazine

Selects and comboboxes

1 of 6 shipped. Each take is a different structure, and the note under its title says how.

  • selects and comboboxes

    Every remote state lives inside the popup: minimum characters hint, skeleton rows, capped result count, empty and error panels with one action each, and stale responses dropped.

    shadcn add @hazine/combobox-async-search

    Depends on button, command, popover, skeleton, @hazine/use-controllable-state, lucide-react

Planned 5

  • Drill-in Hierarchy Select

    Navigates levels inside one popover instead of showing a flat or indented list: Right Arrow or Enter opens a branch, Left Arrow goes back, leaf rows select, and the trigger shows the full path truncated from the middle.

  • Combobox with Avatar and Meta

    Rich two-line option rows with leading media and trailing metadata; search matches both name and email and the matched substring is emphasised with font weight.

  • Combobox with Create Option

    The list gains a pinned creation action separated from results; new options are validated for duplicates and length and marked New until the form is saved.

  • Cascading Country and Region Comboboxes

    Dependent pair: the region field is disabled with an explanation until a country is set, resets and relabels itself (State, Province, County) when the country changes, and hides when the country has no subdivisions.

  • Inline Autocomplete Combobox

    The input itself is the trigger and uses both inline and list autocomplete: the suggested remainder is selected in the field, Tab or Right Arrow accepts it and free text is allowed or rejected by a prop.