mui / mui/base-ui

[combobox] Keywords

Open
#3,998 0 comments 3 reactions 0 assignees View on GitHub
component: combobox type: new feature
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Feature request

## Summary

We recently shifted over from `cmdk` to Base UI's `Combobox` — we love it btw! — and one of the features we found ourselves missing was the `keywords` prop: allowing you to specify additional words to match for alongside a specific value

## Examples in other libraries

### `cmdk`

> You can also provide a `keywords` prop to help with filtering. Keywords are trimmed.
>
> ```tsx
> Apple
> ```

## Motivation

For example, in our case, we wanted to match for a user's name and e-mail address

Image

Combobox.Root's `filter` prop allowed us to roll this ourselves, but would be nice just to specify `keywords` as part of `Combobox`'s `item` schema — it was a handy feature of `cmdk`!

cc @moeamaya

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.