DocSpace-client/web/ASC.Web.Components/example/stories/buttons/base
2019-05-24 16:17:36 +03:00
..
base.button.stories.js web: Changed global decorator to Section component 2019-05-24 16:17:36 +03:00
README.md web: Applied changes on isDisabled property of Button component 2019-05-23 10:13:03 +03:00

Buttons: Button

Usage

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

Description

Base Button is used for a action on a page.

Usage

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

Properties

Props Type Required Values Default Description
primary bool - - - Tells when the button should be primary
isDisabled bool - - - Tells when the button should present a disabled state
onClick func - - What the button will trigger when clicked
size oneOf - base, middle, big, huge base -