Dropdown
View Source
A compact way of displaying content or actionable items in a popover. Use Select for selectable options if needed.
Guitar
Props
never
boolean
Closes Popover upon selecting a Dropdown.Item
.
boolean
Externally control Popover open state on initial render.
StyleProps['fontSize']
StyleProps['fontWeight']
boolean
Forces Popover open for testing purposes.
string | ComponentProps
ButtonProps['iconRight'] | null
any
Gain access to the internal ref.
boolean
Attempts to keep popover in view clipping edges if too large.
boolean
Locks external scrollbars when open.
boolean | 'minimum'
Matches anchor and popover widths.
MouseEventHandler
() => void
Callback when Popover is closed.
KeyboardEventHandler
() => void
Callback when Popover is opened.
(event: KeyboardEvent) => void
Overrides the default search function for selecting a dropdown item via keyboard.
(data: any) => void
StyleProps['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.
object
Accepts any valid Popover props.
HTMLElement | string
Where 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.
boolean
JSX.Element | string
ReactReactElement | ReactElementType | string | ReactComponentClass | ReactFunctionComponent
Allows specifying a type or custom element that will be cloned and provided Dropdown
trigger props. (Defaults to a Button.)
string