DocSpace-buildtools/web/ASC.Web.Storybook/stories/input/combobox/README.md

22 lines
1.0 KiB
Markdown
Raw Normal View History

2019-07-18 08:00:54 +00:00
# ComboBox
#### Description
Custom combo box input
#### Usage
```js
import { ComboBox } from 'asc-web-components';
<ComboBox options={options} isDisabled={false}/>
2019-07-18 08:00:54 +00:00
```
#### Properties
| Props | Type | Required | Values | Default | Description |
| ---------------------- | ----------------- | :------: | ---------------------------- | ------- | -------------------------------------------- |
| `options` | `array` | ✅ | - | - | Combo box options |
| `isDisabled` | `bool` | - | - | `false` | Indicates that component is disabled |
| `withBorder` | `bool` | - | - | `true` | Indicates that component contain border |
| `selectedIndex` | `number` | - | - | `0` | Index of option selected by default |