v14.2.0

Playroom

Github

Dropdown

View Source

A compact way of displaying content or actionable items in a popover. Use Select for selectable options if needed. Composes Button and Popover components.

Items

Copy
Edit
Links
Copy
Edit

Custom children

Matrix
Copy
Edit

Fetch data on open

Lazy Items
Copy
Edit

No arrow and text truncation

Supercalifragilisticexpialidocious

Copy
Edit

Custom Trigger

Guitar

Copy
Edit

Props

triggerElementReactElementType | ReactReactNode

Allows specifying a type or custom element that will be cloned and provided Dropdown trigger props.

Closes Popover upon selecting a Dropdown.Item.

forceOpenboolean

Forces Popover open for testing purposes.

Externally control Popover open state on initial render.

onOpenboolean

Callback when Popover is opened.

onCloseboolean

Callback when Popover is closed.

  • Accepts any valid Popover props.
  • Items
  • Links
  • Custom children
  • Fetch data on open
  • No arrow and text truncation
  • Custom Trigger
  • Props
PreviousDrawerNextEditActions