Click the button to see and choose from the options.
@radix-ui/react-select
@lucide/reactInstall the following dependencies:
The select
component is based on @radix-ui/react-select
and supports all of its props. And adds:
Root component that controls all the parts of a dialog.
Prop | Type | Default |
---|---|---|
modal | boolean | true |
defaultOpen | boolean | - |
open | boolean | - |
onOpenChange | function | - |
A button that opens the dialog.
Prop | Type | Default |
---|---|---|
asChild | boolean | false |
Data attribute | Values |
---|---|
[data-state] | "open" / "closed" |