msc
search
Ctrlk
  • 🖌️Ingenium
  • INTRODUCTION
    • Requirements
    • Assigment Criteria
    • Design Specification 1
    • Design Specification 2
    • Design Specification 3
    • Design Specification 4*
    • Design Specification 5
    • Design Specification 6
    • Design Specification 7
    • Design Specification 8
    • Design Specification 9*
    • Design Specification 10
    • Design Specification 11
    • Design Specification 12*
    • Design Specification 13
    • Design Specification 14
    • How updates work
    • Accessibility
  • Mathematics
    • Academic Year 2023
    • Academic Year 2022 Actual
    • Academic Year 2022 Sample
  • Physics
    • Academic Year 2023
    • Academic Year 2022 Sample
    • Academic Year 2022 Actual
  • Matlab
    • Academic Year 2023
    • Academic Year 2022 Sample
    • Academic Year 2022 Actual
  • python
    • Academic Year 2023
    • Academic Year 2022 Sample
    • Academic Year 2022 Actual
  • Components
    • Icons
    • Buttons
    • Inputs
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. Components

Buttons

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.

PreviousIconschevron-leftNextInputschevron-right

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