DocSpace-client/web/ASC.Web.Components/example/stories/group-button/base/README.md

27 lines
1.4 KiB
Markdown
Raw Normal View History

2019-06-06 07:12:28 +00:00
# GroupButton
## Usage
```js
import { GroupButton } from 'asc-web-components';
```
#### Description
Base Button is used for a group action on a page.
#### Usage
```js
<GroupButton label='Group button' disabled={false} isDropdown={false} opened={false} ></GroupButton>
2019-06-06 07:12:28 +00:00
```
#### Properties
| Props | Type | Required | Values | Default | Description |
| ------------------ | -------- | :------: | --------------------------- | -------------- | ----------------------------------------------------------------- |
| `label` | `string` | - | - | `Group button` | Value of the group button |
2019-06-06 07:12:28 +00:00
| `disabled` | `bool` | - | - | `false` | Tells when the button should present a disabled state |
| `isDropdown` | `bool` | - | - | `false` | Tells when the button should present a dropdown state |
| `opened` | `bool` | - | - | `false` | Tells when the button should be opened by default |
| `action` | `func` | - | - | - | What the button will trigger when clicked |