themesberg / themesberg/flowbite-react

[components] Combobox

Open
#883 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:dart: new component help wanted
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:

image image

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???)
  • onChange event property when selection changes

References

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.