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
- Launch checklist
- Trip planningRead
Documentation
The SDK documentation owns the technical contract. Choose the release you build against.
Stable 1.0.0Default
ActionButton reference (Stable 1.0.0)
How to use it:
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
| Import | Package version | Role |
|---|---|---|
@saga-a2ui/core/actions/action-button-schema | @saga-a2ui/core@1.0.0 | Renderer-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.0 | React control and action setup Source of @saga-a2ui/react/actions |
@saga-a2ui/lit/actions | @saga-a2ui/lit@1.0.0 | Lit 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',
},