Skip to content

Commit

Permalink
Replace sizes section
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Nov 21, 2024
1 parent 172c49c commit 8db516e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/src/button/stories/best-practices.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ Use this variant for irreversible actions. Apply sparingly and only for actions
<FigmaEmbed url="https://www.figma.com/design/V7NfxdP0ybEMXf01WyWGKB/Storybook-documentation-Figma-assets?node-id=5-1069&node-type=frame&t=HfUDxJShbqa3dM4N-11" title="isDestructive prop enabled" height="400" />

### Sizes
The default size is 40px. Use smaller sizes for compact views or when placing buttons in small components, such as dropdowns or dialogs.

- `'default'`: For normal text-label buttons, unless it is a toggle button.
- `'compact'`: For toggle buttons, icon buttons, and buttons when used in context of either.
- `'small'`: For icon buttons associated with more advanced or auxiliary features.

## Best practices

Expand Down

0 comments on commit 8db516e

Please sign in to comment.