Inputs
Button
Also calledaction buttonpush button
An interactive control that performs an action, such as submitting a form or opening a panel.
How people describe it
- “filled rectangle you press to do something”
- “clickable box labeled save or submit”
- “rounded control that starts an action”
Good for
- Submitting a form
- Starting or confirming an action
Don’t mix it up with
Represents an on/off setting rather than a one-time action.
What your library calls it
| LIBRARY | CALLS IT |
|---|---|
| shadcn/ui | Button |
Accessibility checklist
- Use a native button with an explicit type
- Provide an accessible name and visible focus
- Support Enter and Space with a 44px target
Try it
Click the button
Click it, then change the look. Loading and disabled block clicks.
Settings
Colors
Pick, eyedrop, or generate a color, then choose Custom under Color above.
Passes AA · 6.9:1
Text color is chosen for you.
Start
End
Prompt
Add a button with a clear action label and visible keyboard focus.
~17 estimated prompt tokensDetailed: ~45 estimated prompt tokens
Rough estimate for prompt text only; actual counts vary by model and context.
<form action="/search" method="get">
<label for="search-query">Search guides</label>
<input id="search-query" name="q" type="search" style="min-height:44px; max-width:100%; box-sizing:border-box">
<button type="submit" style="min-height:44px; min-width:44px">Search</button>
</form>Used in
Explore website blueprints that use this component.