Components
BaseOverflowMenu
An ellipsis icon button that opens a menu, for secondary actions that do not fit next to the primary one.
components/ui/BaseOverflowMenu.vue
View in the demo
Example
The customers, products and invoices headers show their import and export buttons from sm up and this menu below it, so on a phone the title and the primary action stay on one row:
<BaseButton class="d-none d-sm-flex" prepend-icon="import">Import</BaseButton>
<BaseOverflowMenu class="d-sm-none" :options="headerMenu" />
Options are BaseMenuOptions, the same as in BaseMenuButton, including subheader and divider.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
optionsrequired | BaseMenuOption[] | — | The options of the menu. |
label | string | — | Accessible name of the button. Defaults to "More actions". |
button-type | ButtonType | "default" | Style of the trigger, like BaseIconButton. default (surface background, light border) for page headers; ghost inside a toolbar of ghost icon buttons. |