Skip to main content

Interface: MenuProps<T>

Defined in: composites/Menu/Menu.tsx:89

Props for the Menu component.

The composite owns its layout; pass style/className on a wrapping element rather than on the composite root. See CONTRIBUTING §4.

Extends

  • Omit<RACMenuProps<T>, "style" | "className">

Type Parameters

Type Parameter
T extends object

Properties

containerPadding?

optional containerPadding?: number

Defined in: composites/Menu/Menu.tsx:120

Minimum distance (px) the popover keeps from the viewport edges when positioning.


crossOffset?

optional crossOffset?: number

Defined in: composites/Menu/Menu.tsx:109

Popover offset (px) along the cross axis of placement.


evaluation?

optional evaluation?: "primary" | "secondary" | "accent" | "muted" | "negative"

Defined in: composites/Menu/Menu.tsx:97

Semantic emphasis for the overlay surface.

Default

'primary'

offset?

optional offset?: number

Defined in: composites/Menu/Menu.tsx:105

Popover offset (px) from the trigger.


placement?

optional placement?: Placement

Defined in: composites/Menu/Menu.tsx:101

Popover placement relative to the trigger.


shouldFlip?

optional shouldFlip?: boolean

Defined in: composites/Menu/Menu.tsx:115

Whether the popover flips to the opposite side when it would overflow the viewport.

Default

true