DocSpace-buildtools/web/ASC.Web.Storybook/stories/contxt-menu-button/README.md

25 lines
921 B
Markdown

# ContextMenuButton
#### Description
ContextMenuButton is used for displaying context menu actions on a list's item
#### Usage
```js
import { ContextMenuButton } from 'asc-web-components';
<ContextMenuButton
title="Actions"
getData={() => [{key: 'key', label: 'label', onClick: () => alert('label')}]}
/>
```
#### Properties
| Props | Type | Required | Values | Default | Description |
| ---------- | ----------- | :------: | ------ | ------------------ | ------------------------ |
| `title` | `string` | | | - | Specifies the icon title |
| `iconName` | `string` | | | `VerticalDotsIcon` | Specifies the icon name |
| `size` | `number` | | | 16 | Specifies the icon size |
| `color` | `string` | | | - | Specifies the icon color |