29 lines
1.3 KiB
Markdown
29 lines
1.3 KiB
Markdown
|
# SelectedItem
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
import { SelectedItem } from 'asc-web-components';
|
||
|
```
|
||
|
|
||
|
|
||
|
#### Usage
|
||
|
|
||
|
```js
|
||
|
|
||
|
<SelectedItem text="Direction"></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 |
|
||
|
| `clickAction` | `function` | - | - | - | What the selected item will trigger when clicked |
|
||
|
|
||
|
|
||
|
|