Button
Triggers actions and declarative overlay commands with primary, secondary, tertiary, critical, icon, loading, and disabled states.
Official Shopify docsPolaris 2.0 web component
Variants
Pair one primary action with secondary and tertiary buttons to establish clear visual hierarchy.
Critical tone
Reserve tone="critical" for irreversible or destructive merchant actions such as deleting records.
Loading and disabled
Use loading during in-flight mutations to prevent double submission and disabled when prerequisites are unmet.
Icons
Attach a Polaris 2.0 icon name via the icon attribute, and always supply accessibilityLabel on icon-only buttons.
Declarative commandFor
Connect a button directly to an overlay element by ID using commandFor and command without wiring open state.
Submit a form
Use a primary submit button to run native form validation before saving.