Button is used primarily for actions, such as “Continue”, “Apply”, or “Pay”.
optional = ?
||Allows the button to submit a form|
||Destination to link to, renders a Link|
||Renders a visually subdued button|
||Renders a button that visually looks like a Link|
||Replaces content with a loading indicator|
||Accessible label for the loading indicator when user prefers reduced motion|
||Disables the button, disallowing any interaction|
||Callback when pressed|
- Button labels should be clear so customers can predict what the results of interacting with a button will be.
- Use primary buttons for actions that will progress the customer through checkout, such as "Continue to shipping", and "Pay now".
- Use secondary buttons for actions that you want to draw attention to, but are not primary, such as ”Track your order”.
- Use plain buttons when you want the appearance of a text link, but the hit area of a button. Works well alongside other buttons to create hierarchies such as “Continue” and “Return to cart”.