API reference
Prop | Type | Default |
|---|---|---|
children | React.ReactNode | — |
dropdownrequired The menu itself. | ReactNode | — |
placement Where the menu opens relative to the pointer. | top•right•bottom•left•top-start•top-end•right-start•right-end•bottom-start•bottom-end•left-start•left-end | bottom-end |
fillWidth Match the trigger's width. | boolean | false |
minWidth Lower bound on the menu's width, in rem. | number | 12 |
maxWidth Upper bound on the menu's width, in rem. | number | — |
minHeight Lower bound on the menu's height, in rem. | number | — |
style | React.CSSProperties | — |
className | string | — |
onSelect Called with the value of the Option that was picked. | (value: string) => void | — |
closeAfterClick Close on selection. | boolean | true |
open Controlled open state. | boolean | — |
onOpenChange Called whenever it opens or closes. | (open: boolean) => void | — |
selectedOption Value of the Option to mark as current. | string | — |
disabled Stop the menu opening at all. | boolean | false |
| …and every FlexProps prop | inherited | — |