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

27 lines
1.3 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 |
| `directionX` | `oneOf` | - | `left`, `right` | `left` | Sets the opening direction relative to the parent |
| `directionY` | `oneOf` | - | `top`, `bottom` | `bottom` | Sets the opening direction relative to the parent |
2019-07-18 08:09:39 +00:00
| `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|