Ctrlk
  • 🖌️QH88 - Link đăng ký và đăng nhập nhận ngay ưu đãi khủng
  • INTRODUCTION
    • Design Principles
    • Brand Guidelines
    • How updates work
    • Accessibility
  • identity
    • Logos
    • Colors
    • Typography
    • Imagery
  • Components
    • Icons
    • Buttons
    • Inputs
Powered by GitBook
On this page
  1. Components

Buttons

Buttons are used to perform actions in the product.

Default

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

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

Primary

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

Secondary

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

These examples are taken from the excellent Storybook Example Design System.

PreviousIconsNextInputs

Last updated 2 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}
/>