Pilipinas Interface

Foundation

  • Overview
  • Get Started
  • Colors
  • Typography
  • Icons
  • Layout & Spacing
  • States & Feedback
  • Motion & Transitions
  • Expressions

Components

  • Overview
  • Accordion
  • Alert
  • Avatar
  • Badge
  • Banner
  • Breadcrumb
  • Button
  • Card
  • Checkbox
  • Code Block
  • Combobox
  • Command Menu
  • Dialog
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Skeleton
  • Switch
  • Table
  • Tabs
  • Text Field
  • Tooltip

Resources

  • Registry

Components

Combobox

Type to filter, arrow to move, Enter to pick. The list opens in place; an empty query never becomes a dead end.

Preview
<Combobox items={regions} value={value} onValueChange={setValue}>
  <ComboboxInput placeholder="Choose a region" />
  <ComboboxContent>
    <ComboboxEmpty>No region found.</ComboboxEmpty>
    <ComboboxList />
  </ComboboxContent>
</Combobox>

Usage

A large option set that needs search or a create row.

Do and don't

  • Do. Inject verified data and keep the items array stable.
  • Don't. Use it for three short options; use Select or Radio Group.

Composition

Compose Combobox with ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem and ComboboxEmpty. ComboboxChips renders selected values when multiple is set.

Props

  • items; an array of strings or objects with a value and label.
  • value / defaultValue / onValueChange; a string, or string[] with multiple.
  • filter; replace the default case-insensitive label match.
  • onCreate / createLabel; offer a create row when no item matches the query.
  • hideSelected, disabled, name, required, size.

For Philippine locations

Region, province, city and barangay selection from the PSGC hierarchy. Values come from a verified PSA export (quarterly, no official API) and are never bundled by the registry.

No region selected yet.

Related

Shares field wiring with Text Field and the same size ladder as the other controls. List rows use the Colors hover and selected fills.

← PreviousCode BlockNext →Command Menu

Install

npx shadcn@latest add @pilipinas/combobox

For your coding agent