web: Components: Fixed SelectedItem component readme

This commit is contained in:
Ilya Oleshko 2019-11-21 16:29:29 +03:00
parent ab090fac8c
commit 4f8c688aed

View File

@ -1,28 +1,23 @@
# SelectedItem
## Usage
### Usage
```js
import { SelectedItem } from 'asc-web-components';
import { SelectedItem } from "asc-web-components";
```
#### Usage
```js
<SelectedItem text="sample text" onClick={()=>console.log("onClose")}></SelectedItem>
```jsx
<SelectedItem
text="sample text"
onClick={() => console.log("onClose")}
></SelectedItem>
```
#### 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 |
| `onClose` | `function` | - | - | - | What the selected item will trigger when clicked |
### 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 |
| `onClose` | `func` | - | - | - | What the selected item will trigger when clicked |