💾
PEP is to standardize
search
Ctrlk
  • Getting started
  • Basics
    • Season 1 - Google Adschevron-right
    • Icons
    • Componentschevron-right
      • AvatarStack
      • Button
  • Basics
  • Welcome to Read the Docs
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. Basicschevron-right
  2. Components

Button

Buttons are used to perform actions in the product.

hashtag
Default

https://5ccbc373887ca40020446347-geedzbiswp.chromatic.com/iframe.html?id=button--basic&args=size:medium;containsIcon:false&viewMode=story5ccbc373887ca40020446347-geedzbiswp.chromatic.comchevron-right
circle-info

Good to know: you can embed a Storybook canvas by simple pasting the canvas link and hitting enter.

hashtag
Primary

https://5ccbc373887ca40020446347-geedzbiswp.chromatic.com/iframe.html?id=button--basic&args=size:medium;containsIcon:false;appearance:primary&viewMode=story5ccbc373887ca40020446347-geedzbiswp.chromatic.comchevron-right

hashtag
Secondary

https://5ccbc373887ca40020446347-geedzbiswp.chromatic.com/iframe.html?id=button--basic&args=size:medium;containsIcon:false;appearance:secondary&viewMode=story5ccbc373887ca40020446347-geedzbiswp.chromatic.comchevron-right

These examples are taken from the excellent Storybook Example Design Systemarrow-up-right.

PreviousAvatarStackchevron-leftNextWelcome to Read the Docschevron-right

Last updated 3 years ago

  • Default
  • Primary
  • Secondary
<Button
    label="Label"
    size="medium"
    kind="default"
    onClick={doTheThing}
/>
<Button
    label="Label"
    size="medium"
    kind="primary"
    onClick={doTheThing}
/>
<Button
    label="Label"
    size="medium"
    kind="secondary"
    onClick={doTheThing}
/>