Skip to main content

Interface: MenuProps<T>

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

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:123

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


crossOffset?​

optional crossOffset?: number

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

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


evaluation?​

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

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

Semantic emphasis for the overlay surface.

Default​

'primary'

offset?​

optional offset?: number

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

Popover offset (px) from the trigger.


placement?​

optional placement?: Placement

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

Popover placement relative to the trigger.


shouldFlip?​

optional shouldFlip?: boolean

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

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

Default​

true