Skip to content

HeaderAction

HeaderAction(props): Element

Defined in: packages/react/src/ui/ActionsMenu.tsx:115

One field-level header action (Copy all, Paste, Replace all, Collapse all, Expand all) rendered for one surface: a text button on the field’s label row while there is room, or an item in the field’s ⋯ menu when there is not — callers render exactly one surface at a time.

boolean

Whether the action is unavailable.

ReactNode

The action’s icon element (shown in the menu).

string

Button / menu item text.

() => void

Performs the action.

ActionPlacement

The surface this render is for.

Element

The inline button or the menu item.