Browse documentation

UI / Forms / Reference

Button: actions with native activation

Reference native action activation, button types, disabled behavior, and Effect handlers.

Button renders a native button and defaults to type: "button". Use submit only at a form’s submit boundary and use disabled for native interaction suppression. The handler remains an Effect with its own error and service requirements.

import { Button } from "@typed/ui/Button";

export const SaveButton = Button({ type: "button", content: "Save draft" });

A toggle button needs explicit pressed state such as aria-pressed; a destination is a Link. See the Button API and the save-control walkthrough.