Skip to content

[Primitive] Combobox #52

@jbatte47

Description

@jbatte47

Summary

Introduce a Combobox primitive for searchable option selection.

Intended role in Lattice

Combobox provides an accessible, composable control for filtering and selecting options without product logic.

Proposed API

  • value / onValueChange (controlled)
  • items: array of options
  • size: sm | md | lg
  • variant: outline | subtle
  • state: default | invalid | disabled | loading

Variants

  • size: sm | md | lg
  • variant: outline | subtle
  • state: default | invalid | disabled | loading

Non-goals

  • Does not provide async data fetching.
  • Does not implement multi-select.
  • Does not accept arbitrary colors.

States

  • default | hover | focus-visible | invalid | disabled | loading.

Accessibility checklist

  • Implements combobox ARIA pattern.
  • Keyboard navigation for listbox options.
  • Proper aria-expanded, aria-controls, and aria-activedescendant management.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions