Skip to main content

Interface: ActionMenuProps<T>

Defined in: composites/ActionMenu/ActionMenu.tsx:42

Props for the ActionMenu composite.

Deliberately a narrow surface over the two components it composes: the open-state props of MenuTrigger, the item props of Menu, and the emphasis of the trigger. Anything past that is a sign the caller wants a different trigger or a different surface — in which case they compose MenuTrigger + ActionButton + Menu directly, which this component is a shorthand for and never a replacement of.

Extends

  • Pick<RACMenuTriggerProps, "isOpen" | "defaultOpen" | "onOpenChange">.Pick<MenuProps<T>, "children" | "disabledKeys" | "items" | "offset" | "onAction" | "placement" | "shouldFlip">

Type Parameters

Type Parameter
T extends object

Properties

aria-label

aria-label: string

Defined in: composites/ActionMenu/ActionMenu.tsx:65

Accessible name for the trigger — required, and supplied already localized (fsl-ui never depends on an i18n runtime, ADR-001).

There is no default: the reference system falls back to a translated "More actions", which it can because it ships an i18n runtime. Ours cannot, and a hardcoded English default would silently ship untranslated copy into every product. An unnamed icon-only trigger is announced as just "button", so the type system asks for the name instead.


data-scope?

optional data-scope?: string

Defined in: composites/ActionMenu/ActionMenu.tsx:84

Data scope identifier for the trigger.

Default

'action-menu'

evaluation?

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

Defined in: composites/ActionMenu/ActionMenu.tsx:77

Semantic emphasis of the trigger. secondary is the default: an overflow trigger is an ambient operation, like any other utility action.

muted is the quiet posture for a trigger that should stay invisible until hovered — read the caveat in F-024 first: the quiet rung resting fill is the page surface, so on a raised card or a selected row it currently shows as a patch of page colour rather than borrowing the surface underneath.

Default

'secondary'

isDisabled?

optional isDisabled?: boolean

Defined in: composites/ActionMenu/ActionMenu.tsx:79

Whether the trigger is disabled.


offset?

optional offset?: number

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

Popover offset (px) from the trigger.

Inherited from

MenuProps.offset


placement?

optional placement?: Placement

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

Popover placement relative to the trigger.

Inherited from

MenuProps.placement


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

Inherited from

MenuProps.shouldFlip