Skip to content

Dropdown — Guidelines

Use the API control (top right) to show guidance for the selected API.



Multi-select display

displayModeTrigger shows
valueComma-separated labels (default)
chipsRemovable catnip-chip chips
count"{n} selected" (override with selectedCountLabel)

Works with both options and child-element APIs.


Validation

Set intent="danger" and supportingText together — same pattern as Input. The dropdown does not mirror native :invalid automatically.


Accessibility

  • Tab to the trigger; when the panel is closed, Enter, Space, or ArrowDown opens it (ArrowUp does not open from a closed trigger).
  • With filterable, focus moves to the search field on open; you can type spaces in the filter. ArrowUp/Down, Home/End, Enter, and Escape in the filter move keyboard focus in the list; ordinary letters stay in the filter input.
  • When the panel is open and focus is on the trigger (non-filterable), ArrowUp/Down, Home/End, typeahead, Enter/Space navigate and select.
  • On open, the first selected visible option is highlighted when possible.
  • Escape closes; focus returns to the trigger (or the first focusable child in a custom trigger slot).

Catnip Design System by Signicat