Components / Button
Button
Any click action: submits, confirmations, toolbar controls. Text-only or icon-only; the label says exactly what happens.
import { Button } from '@layers/ui/button'Rendered stock
House rules
- No icon+text buttons. A button is text-only, or icon-only with size="icon" and an aria-label.
- Toolbar controls are uniformly 32px: size="sm" on every control inside a toolbar.
- Mutations get an explicit Save button with a spinner; never an optimistic save.