Skip to content
THE COMPONENT LIBRARY
Skip to content

Component reference

DropdownMenu

Commands attached to a record action trigger.

Preview

Live preview

Changes apply to this preview only.

last action: none

Width adapts to the available space

More examples

Different configurations and compositions using the real Pimolu API. Each preview runs independently and follows the site appearance.

The panel is centred under the trigger; use align='end' for a trailing menu.

Open preview

A row actions composition using DropdownMenu.

Open preview

A compact trigger composition using DropdownMenu.

Open preview

Usage

Use commands for mutations and links for navigation; show the outcome near the affected content.

API reference

Generated from the public TypeScript declarations. Native HTML attributes are inherited where the component extends them; this reference includes Pimolu props and selected common native attributes.

PimoluDropdownMenuProps

Type source
PimoluDropdownMenuProps public API
NameTypeDefaultDescription
childrenRequiredReactNode—Public Pimolu prop; see the source declaration for details.
openboolean | undefined—Public Pimolu prop; see the source declaration for details.
defaultOpenboolean | undefinedfalsePublic Pimolu prop; see the source declaration for details.
onOpenChange((open: boolean) => void) | undefined—Public Pimolu prop; see the source declaration for details.
childrenRequired

ReactNode

No default extracted.

Public Pimolu prop; see the source declaration for details.

open

boolean | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

defaultOpen

boolean | undefined

Default: false

Public Pimolu prop; see the source declaration for details.

onOpenChange

((open: boolean) => void) | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

PimoluDropdownMenuTriggerProps

Type source
PimoluDropdownMenuTriggerProps public API
NameTypeDefaultDescription
childrenRequiredReactElement<unknown, string | JSXElementConstructor<any>>—Public Pimolu prop; see the source declaration for details.
childrenRequired

ReactElement<unknown, string | JSXElementConstructor<any>>

No default extracted.

Public Pimolu prop; see the source declaration for details.

PimoluDropdownMenuContentProps

Type source
PimoluDropdownMenuContentProps public API
NameTypeDefaultDescription
childrenRequiredReactNode—Public Pimolu prop; see the source declaration for details.
sideOffsetnumber | undefined6Distance from the trigger. Defaults to 6.
align"start" | "end" | undefined"start"Public Pimolu prop; see the source declaration for details.
classNamestring | undefined—Public Pimolu prop; see the source declaration for details.
childrenRequired

ReactNode

No default extracted.

Public Pimolu prop; see the source declaration for details.

sideOffset

number | undefined

Default: 6

Distance from the trigger. Defaults to 6.

align

"start" | "end" | undefined

Default: "start"

Public Pimolu prop; see the source declaration for details.

className

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

PimoluDropdownMenuItemProps

Type source
PimoluDropdownMenuItemProps public API
NameTypeDefaultDescription
childrenRequiredReactNode—Public Pimolu prop; see the source declaration for details.
onSelect(() => void) | undefined—Public Pimolu prop; see the source declaration for details.
disabledboolean | undefinedfalsePublic Pimolu prop; see the source declaration for details.
childrenRequired

ReactNode

No default extracted.

Public Pimolu prop; see the source declaration for details.

onSelect

(() => void) | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

disabled

boolean | undefined

Default: false

Public Pimolu prop; see the source declaration for details.

PimoluDropdownMenuSeparatorProps

Type source
PimoluDropdownMenuSeparatorProps public API
NameTypeDefaultDescription
classNamestring | undefined—Public Pimolu prop; see the source declaration for details.
className

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

PimoluDropdownMenuLabelProps

Type source
PimoluDropdownMenuLabelProps public API
NameTypeDefaultDescription
childrenRequiredReactNode—Public Pimolu prop; see the source declaration for details.
classNamestring | undefined—Public Pimolu prop; see the source declaration for details.
childrenRequired

ReactNode

No default extracted.

Public Pimolu prop; see the source declaration for details.

className

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

Accessibility

  • Name the trigger and check arrow navigation, disabled items and Escape restoration.
Read the accessibility guide →