Skip to content

Commit

Permalink
docs(button): add destructive secondary example
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-joe committed Nov 23, 2023
1 parent d73fa39 commit 184c64a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/docs/components/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Buttons are used to trigger actions. There are different button variants that ar
| ------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `Basic` | Default. Will suit the majority of actions on a page. |
| `Primary` | Use for the most important action on a page, like a _Save data_ button in a form. Only use one `primary` button on a page. |
| `Secondary` | Use for less important actions, usually in combination with other buttons. |
| `Secondary` | Use for less important actions, usually in combination with other buttons. Can be applied to `Destructive`. |
| `Destructive` | Only for primary-type actions that will delete or destroy something. Don't use several on a single page. |

#### Basic
Expand Down Expand Up @@ -67,12 +67,16 @@ Buttons are used to trigger actions. There are different button variants that ar
#### Destructive

<Demo>
<Button destructive>Destructive button</Button>
<div class="stacked-examples-horizontal">
<Button destructive>Destructive button</Button>
<Button destructive secondary>Destructive secondary button</Button>
</div>
</Demo>

- Only use for primary-type actions that will destroy data.
- Don't use if the action will only remove an item from the current context.
- Only use a one `destructive` button per page.
- `Destructive secondary` can be used more than once per page for less important destructive actions.

### Format

Expand Down

0 comments on commit 184c64a

Please sign in to comment.