Components · Actions · Button
Back to Button typesPrimary Button
Use for the single most important action on a screen.
Properties
Size, content, corner radius and label are properties of the button component, not separate buttons - change them below to check this button's style, variation and states in the Live Preview.
Live Preview
All 8 types compared side by side, each in all 6 states. One full matrix is rendered per selected combination of Size, Content and Corner radius - check more than one option in a dropdown to see every combination side by side.
When to use Primary
The button that carries the main call to action on a screen, like saving a form, submitting a purchase, or confirming a change.
Component Guide
Overview
The Primary Button is the highest-emphasis action in the Agentic Design System - a solid, brand-red filled button reserved for the single most important action on a screen or within a section. Its strong fill and contrast are what make it read as "the one thing to do here," so its impact depends on staying rare: a screen with more than one Primary Button no longer tells the user where to look first.
When to Use
- The main call to action on a form or page - Save, Submit, Continue, Buy Now.
- The action that completes or advances a flow - Create, Generate, Start, Confirm.
- Exactly one per screen or logical section - a modal footer, a form, a card - never two Primary Buttons competing in the same view.
- Paired with a Secondary Button for the alternate action - e.g. "Save" (Primary) next to "Cancel" (Secondary).
When Not to Use
- Supporting or optional actions - use Secondary or Tertiary instead, so the visual hierarchy still points at the real primary action.
- Irreversible or data-loss actions - use the Destructive type so risk is communicated by color, not just position.
- Plain navigation or wayfinding - use Anchor (inline text link) or Link-type Button instead of a boxed, high-emphasis button.
- Repeated per-row actions in a table or list - a Primary Button repeated many times in a view dilutes its meaning; use Ghost or Tertiary for row-level actions.
Best Practices
- Keep the label a specific verb or verb phrase ("Save changes", not "OK" or "Submit" in isolation) so the action is unambiguous out of context.
- Place it in a predictable, consistent position (e.g. bottom-right of a modal/form footer) so users build muscle memory across the product.
- Never rely on color alone to convey the Disabled state - it also loses interactivity (cursor, pointer-events) and drops opacity.
- Don't change a Primary Button's color per screen to "match a theme" - the brand-red fill is what signals primacy; recoloring it breaks that signal everywhere else it's used correctly.
Do and Don't
Do
One Primary carrying the main action, paired with a Secondary for the alternative. The eye lands on the important one immediately.
Don't
Three Primaries compete, so none of them reads as primary. Once everything is emphasised, nothing is.
Accessibility
- Renders as a real
<button>element, so it's reachable by keyboard (Tab) and activates with Enter/Space by default - no extra ARIA role needed. - Focus state uses a visible 2px outline, never a color-only change, so keyboard users can always tell which control is focused.
- Text and icon colors meet WCAG 2.2 AA contrast against the red fill in both light and dark theme.
- Disabled buttons use the native
disabledattribute (removed from the tab order and announced as unavailable by screen readers), not just a visual dim. - Minimum touch target is 40px (Medium size) or larger, meeting WCAG 2.2's target-size guidance for pointer input.
Related Components
Secondary Button (the paired alternate action), Tertiary Button and Ghost Button (lower-emphasis actions), Link Button and Anchor (text-only navigation), Destructive Button (irreversible actions), Group Button (mutually exclusive option sets), Float Button (a persistent corner-anchored action).
{
"component": "Button",
"type": "Primary",
"category": "Actions",
"summary": "The highest-emphasis action button - a solid brand-red fill reserved for the single most important action on a screen or section.",
"whenToUse": [
"The main call to action on a form or page (Save, Submit, Continue, Buy Now)",
"The action that completes or advances a flow (Create, Generate, Start, Confirm)",
"Exactly one per screen or logical section",
"Paired with a Secondary Button for the alternate action"
],
"whenNotToUse": [
"Supporting or optional actions - use Secondary or Tertiary",
"Irreversible or data-loss actions - use the Destructive type",
"Plain navigation or wayfinding - use Anchor or the Link type",
"Repeated per-row actions in a table or list - use Ghost or Tertiary"
],
"bestPractices": [
"Use a specific verb label, not a generic \"OK\"",
"Place it in a consistent, predictable position (e.g. bottom-right of a footer)",
"Never rely on color alone for the Disabled state",
"Do not recolor it per screen - the brand-red fill is the primacy signal"
],
"doAndDont": {
"do": "One Primary carrying the main action, paired with a Secondary for the alternative. The eye lands on the important one immediately.",
"dont": "Three Primaries compete, so none of them reads as primary. Once everything is emphasised, nothing is."
},
"accessibility": [
"Renders as a native <button> element - keyboard reachable and Enter/Space activatable by default",
"Visible 2px focus outline, never a color-only focus change",
"Text/icon contrast meets WCAG 2.2 AA against the fill in both themes",
"Disabled state uses the native disabled attribute, removed from the tab order",
"Control height is 40px at Medium size; the touch hit area is at least 44px (--size-target), meeting WCAG 2.2 target-size guidance"
],
"relatedComponents": ["Secondary Button", "Tertiary Button", "Ghost Button", "Link Button", "Anchor", "Destructive Button", "Group Button", "Float Button"]
}