Skip to content

SurfacedAction

SurfacedAction(props): Element

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

One item action (duplicate, move, remove) rendered for one surface: as an icon button beside the item, or as an item in its ⋯ menu. Callers pick the surface from useCompactForm so an action is never shown in both at once. Array items and blocks use the same icons and styling so the same action reads the same everywhere.

string

Accessible name for the inline icon button.

boolean

Styles the action as destructive (remove).

boolean

Whether the action is unavailable.

ReactNode

The action’s icon element.

string

Menu item text.

() => void

Performs the action.

ActionPlacement

The surface this render is for.

Element

The inline button or the menu item.