web: Components: Fixed SelectedItem component readme
This commit is contained in:
parent
ab090fac8c
commit
4f8c688aed
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user