@brighthr/component-contextmenu v3.1.2
ContextMenu
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-contextmenu
To implement the Checkbox component into your project you’ll need to add the import:
import {
ContextMenuListItem,
ContextMenu,
} from '@brighthr/component-contextmenu';
After adding import into your project you can use it simply like:
<ContextMenu />
Props
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | The content of the ContextMenu. | |
contextName | string | Sets the ariaLabel value. | |
customTriggerLayout | React.ReactNode | Sets a custom element to open the menu, e.g a chevron. | |
disabled | boolean | false | If true , disables the ContextMenu with a gray overlay. |
menuPosition | 'left' 'right' 'center' | Sets the side to which the menu will open. | |
onOpen | () => void | Function for handling onOpen event. | |
text | string | Sets some text to describe what is in the menu. |
7 days ago
3 months ago
3 months ago
4 months ago
5 months ago
7 months ago
8 months ago
7 months ago
9 months ago
10 months ago
8 months ago
9 months ago
8 months ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago