Skip to content

Function: Dropdown()

Dropdown(props): Element

Defined in: dropdown.tsx:26

Parameters

props

children

(close) => Element

Popup body — arbitrary JSX; close dismisses the popup.

class?

string

Class for the trigger button (style it as the host's own chip/pill).

label?

string

Accessible name for the trigger button.

onOpen?

() => void

Fires on every OPEN — the refresh hook.

trigger

Element

Always-visible trigger content, rendered inside the toggle button.

Returns

Element