Skip to content

Commit

Permalink
feat: button
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed Nov 28, 2024
1 parent aea992c commit edbbf4c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/engineering/content/design/components/button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@ Icons can be added anywhere as a child of the button. In most scenarios you shou

## Keyboard

Providing a keyboard shortcut will override the `suffix` icon slot.
Providing a keyboard shortcut will add an icon on the right side of the button and fire the callback when the key is pressed.

<KeyboardExample/>



## Loading

Providing a loading stae will override the `prefix` icon slot.
When the user hits the specified key, the `onClick` handler will be called.
Providing a loading state will add a spinner on the left side of the button.

<LoadingExample/>

Expand Down

0 comments on commit edbbf4c

Please sign in to comment.