DocSpace-buildtools/web/ASC.Web.Storybook/stories/drop-down/base/README.md

26 lines
1.2 KiB
Markdown
Raw Normal View History

2019-06-10 12:28:54 +00:00
# DropDown
## Usage
```js
import { DropDown } from 'asc-web-components';
```
#### Description
Is a dropdown with any number of action
#### Usage
```js
<DropDown opened={false}></DropDown>
```
#### Properties
| Props | Type | Required | Values | Default | Description |
| ------------------ | -------- | :------: | --------------------------- | -------------- | ----------------------------------------------------------------- |
| `opened` | `bool` | - | - | `false` | Tells when the dropdown should be opened |
2019-07-18 08:09:39 +00:00
| `direction` | `oneOf` | - | `left`, `right` | `left` | Sets the opening direction relative to the parent |
| `manualWidth` | `string` | - | - | - | Required if you need to specify the exact width of the component, for example 100%|
| `manualTop` | `string` | - | - | - | Required if you need to specify the exact distance from the parent component|