Dropdown
View Source
A compact way of displaying content or actionable items in a popover. Use Select for selectable options if needed.
Guitar
Props
neverbooleanCloses Popover upon selecting a Dropdown.Item.
booleanExternally control Popover open state on initial render.
StyleProps['fontSize']StyleProps['fontWeight']booleanForces Popover open for testing purposes.
string | ComponentPropsButtonProps['iconRight'] | nullanyGain access to the internal ref.
booleanAttempts to keep popover in view clipping edges if too large.
booleanLocks external scrollbars when open.
boolean | 'minimum'Matches anchor and popover widths.
MouseEventHandler() => voidCallback when Popover is closed.
KeyboardEventHandler() => voidCallback when Popover is opened.
(event: KeyboardEvent) => voidOverrides the default search function for selecting a dropdown item via keyboard.
(data: any) => voidStyleProps['paddingLeft']StyleProps['paddingVertical']Placement'top-start'
| 'top'
| 'top-end'
| 'right-start'
| 'right'
| 'right-end'
| 'bottom-start'
| 'bottom'
| 'bottom-end'
| 'left-start'
| 'left'
| 'left-end'
Where to place the popover.
objectAccepts any valid Popover props.
HTMLElement | stringWhere to render the popover into. Accepts an HTML element or selector.
Uses the closest fixed parent or document.body by default. This will only
be computed once on initial render.
booleanJSX.Element | stringReactReactElement | ReactElementType | string | ReactComponentClass | ReactFunctionComponentAllows specifying a type or custom element that will be cloned and provided Dropdown trigger props. (Defaults to a Button.)
string