DocSpace-buildtools/web/ASC.Web.Storybook/stories/buttons/base
2019-07-18 16:24:40 +03:00
..
base.button.stories.js Web: Components: Added medium size for Button component 2019-07-18 16:24:40 +03:00
README.md Moved Storybook to separated ASC.Web.Storybook folder (issue: 'git clean -xdf' removes storybook files every time) 2019-07-09 17:54:30 +03:00

Buttons: Button

Usage

import { Button } from 'asc-web-components';

Description

Button is used for a action on a page.

Usage

<Button size='base' isDisabled={false} onClick={() => alert('Button clicked')} label="OK" />

Properties

Props Type Required Values Default Description
label string - - - Button text
primary bool - - - Tells when the button should be primary
size oneOf - base, middle, big, huge base Size of button
isDisabled bool - - - Tells when the button should present a disabled state
isLoading bool - - - Tells when the button should show loader icon
onClick func - - What the button will trigger when clicked