Skip to content

react-select with shadcn/ui

A gist that restyles the react-select library with shadcn/ui tokens, for single and multi selects.

gist.github.com/ilkou/7bf2dbd42a7faf70053b43034fc4b5a4

react-select with shadcn/ui website screenshot
Added

About

About react-select with shadcn/ui

react-select with shadcn/ui is a code gist from ilkou that dresses the widely used react-select library in shadcn/ui's look. It renders react-select in unstyled mode and supplies Tailwind classes drawn from the shadcn token set: border-input and ring-ring on the control, bg-secondary tags for multiple values, and popover colors for the menu. Custom pieces replace the clear indicator, dropdown indicator, multi-value remove button and option rows.

Copy the gist's files into your project, a SimpleSelect wrapper plus a helper file with the style maps and a components file, and pass options the way you would to react-select. Because the underlying library stays, you keep its async, creatable and multi-select features. It suits projects that already depend on react-select and want a consistent theme. The gist has about 35 stars.

react-select with shadcn/ui features

5 features

  • react-select in unstyled mode
  • shadcn/ui token-based Tailwind classes
  • Styled multi-value tags
  • Custom clear and dropdown indicators
  • Forwarded ref wrapper component

What you can build with react-select with shadcn/ui

3 use cases

  • Matching an existing react-select field to a shadcn/ui theme
  • Building a multi-select tag picker for a form
  • Keeping react-select features while changing its look

Pricing

Ship it with Pro

The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What react-select with shadcn/ui is, how to install it, its license and its alternatives.

4.9 out of 5 from 150+ developers

Found your stack? Ship it.

6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.

Get Pro