Design
System
Browse field guides

Buttons

Name an action and make its consequence clear before someone commits.

Interactive example

Try saving a sample draft.

View HTML
HTML
<button type="button">Save draft</button>
<p role="status"></p>

Disabled state

Add a document before sending the request.

View HTML
HTML
<button type="button" disabled>Send request</button>
<p>Add a document before sending the request.</p>

Native markup

HTML
<button type="button">Save draft</button>
<p role="status"></p>

Implementation contract

Element and type
Use a native button. Set type="button" for an action handled in script and type="submit" for form submission.
Disabled state
The native disabled attribute prevents activation and removes the button from the tab sequence.
Completion feedback
Update a nearby role="status" region after the action completes.

For product-specific imports and props, check the Agrikit reference and the package version your project uses.

Usage

Lead with a verb and include the object when there is room for doubt. “Save draft” and “Send request” are different commitments. Give the action that advances the current task the strongest visual emphasis.

Use a link for navigation to another page. A button is appropriate when someone changes the current state, opens a dialog or submits a form.

Keyboard and feedback

Tab to the example and press Space or Enter. Focus stays on the button and the status announces the result. A production save should confirm success only after the write succeeds and preserve entered data when it fails.

Keep the focus indicator visible. When an action is unavailable, put the reason in visible text near the control so people can find it without focusing the button.

Documentation history

The initial guide introduced the save-draft example and native button markup. The tabbed edition adds the disabled example and documents the native behavior separately from design guidance.

Read nextText fields →