Skip to content

Commit

Permalink
docs(button): update sizing guidance (#13396)
Browse files Browse the repository at this point in the history
* docs(button): update sizing guidance

* Update packages/react/src/components/Button/Button.mdx

Co-authored-by: TJ Egan <[email protected]>

* docs(button): add 2xl example

---------

Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: Alessandra Davila <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Mar 30, 2023
1 parent 507ed8e commit 09f7da2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/react/src/components/Button/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -268,18 +268,18 @@ an element appear as a button control to a screen reader. Check out the
### Button `size`

This prop specifies which size the `Button` should be rendered at. Valid values
are `sm`, `lg`, `xl` and `default`. If no `size` is specified, it
renders as `default`.
are `sm`, `md`, `lg`, `xl`, and `2xl`. If no `size` is specified, it renders as `lg`.

<Button>Submit</Button> <Button size="sm">
<Button>Submit</Button> <Button size="sm">Submit</Button> <Button size="md">
Submit
</Button> <Button size="lg">Submit</Button> <Button size="xl">Submit</Button>
</Button> <Button size="xl">Submit</Button> <Button size="2xl">Submit</Button>

```jsx
<Button>Submit</Button>
<Button size="sm">Submit</Button>
<Button size="lg">Submit</Button>
<Button size="md">Submit</Button>
<Button size="xl">Submit</Button>
<Button size="2xl">Submit</Button>
```

### Button `tooltipAlignment`
Expand Down

0 comments on commit 09f7da2

Please sign in to comment.