DocSpace-client/web/ASC.Web.Components/src/components/selector-add-button/README.md

26 lines
931 B
Markdown
Raw Normal View History

# SelectorAddButton
## Usage
```js
import { SelectorAddButton } from 'asc-web-components';
```
#### Usage
```js
<SelectorAddButton title="Add item" onClick={()=>console.log("onClose")}></SelectorAddButton>
```
#### Properties
| Props | Type | Required | Values | Default | Description |
| ------------ | ---------- | :------: | ------ | ------- | ----------------------------------------------------- |
| `isDisabled` | `bool` | - | - | false | Tells when the button should present a disabled state |
| `title` | `string` | - | - | - | Title text |
| `onClick` | `function` | - | - | - | What the button will trigger when clicked |
| `className` | `string` | - | - | - | Attribute className |