← All components

Stable 1.0.0

ActionButton

A control whose layout names no action. The application attaches an action to each rendered instance, so one definition serves every row while each row keeps its own state.

What it looks like

Illustration. A drawing of ActionButton for this page, not the SDK rendering it. It is not interactive and calls no service.

Documentation

The SDK documentation owns the technical contract. Choose the release you build against.

Renderers and hosts

Statements below are the SDK’s, for each release. Nothing here adds a host that the SDK does not record.

Stable 1.0.0

  • React Published
  • Lit Published
  • The notes application runs with Lit controls and, through a React consumer, with React controls. SDK guidefor this statement (Stable 1.0.0)
  • In Claude and ChatGPT, in-card server requests are allowed or refused for the signed-in account. No SDK guide records more.

Packages and imports

Stable 1.0.0

Entry points of ActionButton at source revision 15591e3.
ImportPackage versionRole
@saga-a2ui/core/actions/action-button-schema@saga-a2ui/core@1.0.0Renderer-neutral contract of the control: a strict schema with no action property Source of @saga-a2ui/core/actions/action-button-schema
@saga-a2ui/react/actions@saga-a2ui/react@1.0.0React control and action setup Source of @saga-a2ui/react/actions
@saga-a2ui/lit/actions@saga-a2ui/lit@1.0.0Lit control and action setup Source of @saga-a2ui/lit/actions

From the SDK source

Two ActionButton instances in a row of the notes application's layout. Neither names an action. This is code copied fromexamples/pack1-consumer/src/notes-surface.ts in the Stable 1.0.0 source. It is not a rendering.

{
  id: 'note-actions',
  component: 'Row',
  children: ['row-read', 'row-archive'],
},
{
  id: 'row-read',
  component: 'ActionButton',
  child: 'row-read-label',
},
{
  id: 'row-read-label',
  component: 'Line',
  kind: 'body',
  text: 'Mark read',
},
{
  id: 'row-archive',
  component: 'ActionButton',
  child: 'row-archive-label',
},
{
  id: 'row-archive-label',
  component: 'Line',
  kind: 'body',
  text: 'Archive',
},

← All components