DocSpace-buildtools/web/ASC.Web.Storybook/stories/buttons/base
2019-07-31 21:19:34 +03:00
..
base.button.stories.js web: components: Added new property 'scale' to the Button component 2019-07-31 21:16:29 +03:00
README.md web: components: Removed isRequired from onClick Button for Redux Form 2019-07-31 21:19:34 +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 base Size of button
scale bool - - false Scale width of button to 100%
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