# Popover Menu
A Popover Menu is used to display a menu of actions in a Popover.
# Using a Popover Menu
To use a Popover Menu, create a Popover and use your PopoverMenu inside. You must set padding to flush
.
# Using a Popover Menu
You can pass title
prop to add title for menu.
# Padding
Use the padding
prop to adjust the padding on the Popover Menu.
# Menu Items
You can pass various properties to your menu-tems
to style them, give them icons, etc.
Each MenuItem has following properties.
Property | Type | Description | Required |
---|---|---|---|
id | String | Unique identifier for menu item, used in click event | true |
icon | String | The icon to render | false |
text | String | Text that is displayed in menu item | true |
destructive | Boolean | If enabled changes menu item text to red | false |
disabled | Boolean | Disables menu item | false |
onClick | Function | The function to execute when the item is clicked. | false |
# Events
Popover Menu has one event @select
, fired when the Popover Menu is selected. This can be used if passing in an onClick
function is not desired.
← Pagination Popover →