DocsAPI ReferenceComponents<ActionBar.Action>

<ActionBar.Action>

Render an action button in the <ActionBar>. Often used inside an <ActionBar.Group>.

<ActionBar>
  <ActionBar.Action onClick={() => console.log("Clicked!")}>★</ActionBar.Action>
</ActionBar>
Interactive Demo

Props

PropExampleTypeStatus
children<svg />ReactNodeRequired
onClick() => voidFunction-
label"Label"String-

Required Props

children

A node to render as the children of the action. Should be a string or an icon.

Puck uses Lucide icons. You can use lucide-react to choose a similar icon, if desired.

onClick(e)

An onClick callback triggered when the user clicks the action.

Optional Props

label

A label to provide an accessible label when using icon.