2019-08-07 15:17:21 +00:00
|
|
|
# SelectedItem
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { SelectedItem } from 'asc-web-components';
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
|
2019-08-08 08:36:46 +00:00
|
|
|
<SelectedItem text="sample text" onClick={()=>console.log("onClose")}></SelectedItem>
|
2019-08-07 15:17:21 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ------------------ | -------- | :------: | --------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
| `isDisabled` | `bool` | - | - | false | Tells when the button should present a disabled state |
|
|
|
|
| `text` | `string` | - | - | - | Selected item text |
|
|
|
|
| `isInline` | `bool` | - | - | true | Sets the 'display: inline-block' property |
|
2019-08-08 08:36:46 +00:00
|
|
|
| `onClose` | `function` | - | - | - | What the selected item will trigger when clicked |
|
2019-08-07 15:17:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
|