2019-09-10 11:45:50 +00:00
|
|
|
# SelectorAddButton
|
|
|
|
|
2019-11-21 13:29:48 +00:00
|
|
|
### Usage
|
2019-09-10 11:45:50 +00:00
|
|
|
|
|
|
|
```js
|
2021-02-25 21:19:45 +00:00
|
|
|
import SelectorAddButton from "@appserver/components/selector-add-button";
|
2019-09-10 11:45:50 +00:00
|
|
|
```
|
|
|
|
|
2019-11-21 13:29:48 +00:00
|
|
|
```jsx
|
|
|
|
<SelectorAddButton
|
|
|
|
title="Add item"
|
|
|
|
onClick={() => console.log("onClose")}
|
|
|
|
></SelectorAddButton>
|
2019-09-10 11:45:50 +00:00
|
|
|
```
|
|
|
|
|
2019-11-21 13:29:48 +00:00
|
|
|
### Properties
|
2019-09-10 11:45:50 +00:00
|
|
|
|
2019-12-03 13:24:30 +00:00
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ------------ | :------------: | :------: | :----: | :-----: | ----------------------------------------------------- |
|
|
|
|
| `className` | `string` | - | - | - | Attribute className |
|
|
|
|
| `id` | `string` | - | - | - | Accepts id |
|
|
|
|
| `isDisabled` | `bool` | - | - | `false` | Tells when the button should present a disabled state |
|
|
|
|
| `onClick` | `function` | - | - | - | What the button will trigger when clicked |
|
|
|
|
| `style` | `obj`, `array` | - | - | - | Accepts css style |
|
|
|
|
| `title` | `string` | - | - | - | Title text |
|