Skip to content

feat(combobox): filter prop to replace the default matcher - #4

Merged
MiniCodeMonkey merged 1 commit into
mainfrom
combobox-filter-prop
Oct 1, 2026
Merged

MiniCodeMonkey merged 1 commit into
mainfrom
combobox-filter-prop

Conversation

@MiniCodeMonkey

Copy link
Copy Markdown
Member

Adds an optional filter(option, query) prop to Combobox, passed through to Base UI's Combobox.Root. Omitted, the default matcher is unchanged.

Bullpen needs it for a fuzzy project picker (typing "gaz app" should find "Gazetteer append"), which Base UI's built-in contains-match cannot do.

Tests: a new Combobox.test.tsx types the same query with and without filter and asserts the listed options differ. It runs under a per-file jsdom environment; jsdom and Testing Library are dev-only and not shipped.

https://claude.ai/code/session_019z4Ci4N7EEQPRtk3kAoZeS

Adds jsdom and Testing Library as dev dependencies so the Combobox can be
exercised with real typing.

Claude-Session: https://claude.ai/code/session_019z4Ci4N7EEQPRtk3kAoZeS
@MiniCodeMonkey
MiniCodeMonkey merged commit cbda2ab into main Oct 1, 2026
1 check passed
@MiniCodeMonkey
MiniCodeMonkey deleted the combobox-filter-prop branch October 1, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant