themesberg / themesberg/flowbite-react
[components] Combobox
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 506
- PR merge metrics
- No merged PRs in 30d
Description
- I have searched the Issues to see if this bug has already been reported
- I have tested the latest version
Summary
The component Select is using the browser style to show the select options, and doesn't allow adding some nice feature such as search.
Code:
<Select id="country" defaultValue="empty">
<option value="empty">Choose your country</option>
<option value="USA">USA</option>
<option value="UK">United Kingdom</option>
<option value="CA">Canada</option>
<option value="FR">France</option>
<option value="DE">Germany</option>
<option value="ES">Spain</option>
<option value="JP">Japan</option>
<option value="AUS">Australia</option>
</Select>
Result:
Context
I would like to have a Combobox, that will have a nice flowbite style, not the default browser style. It should also allow users to select one or more options from the list of items, and filter them based on a search input.
Features
- Simple selection without the search
- Single selection with a search
- Multiple selection/removal (tags added over the input with removable button icon) with search
- Event handler to handle async search (
onSearchChange???) onChangeevent property when selection changes
References
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the existing Select component and compare its behavior with the referenced Headless UI combobox and React multi-select component. Clarify the supported single, searchable, multi-select, removal, async-search, and change-event requirements before implementation; done means the Flowbite-styled Combobox supports the requested selection and filtering flows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, tailwindcss, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100