Select

Click the button to see and choose from the options.

@radix-ui/react-select

@lucide/react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/select.json

Examples


Icons

Scrollable


API Reference

The select component is based on @radix-ui/react-select and supports all of its props. And adds:

Root

Root component that controls all the parts of a dialog.

PropTypeDefault
modalbooleantrue
defaultOpenboolean-
openboolean-
onOpenChangefunction-

Trigger

A button that opens the dialog.

PropTypeDefault
asChildbooleanfalse
Data attributeValues
[data-state]"open" / "closed"

Examples