Actions / Split button

Actions

Split button

A primary action with a caret for its alternatives — Send, or Schedule send.

import { EcoSplitButton } from "vue-ecosphere"

Send / Schedule send

From the composer: the main half sends now, the caret opens the schedule choices. Pair the caret with a menu and bind v-model:open to it.

Sent 0 · menu closed

API

NameTypeDefaultDescription
labelstring—Main action text; the default slot overrides it.
iconstring—Leading RemixIcon on the main action.
menuLabelstring—Required. aria-label and tooltip of the caret.
menuIdstring—id of the menu the caret controls (aria-controls).
v-model:openbooleanfalseDrives aria-expanded and rotates the chevron. Toggled by the caret.
disabledbooleanfalseDisables both halves.
@click(e: MouseEvent)—The main action was pressed.
@menu(e: MouseEvent)—The caret was pressed; open your menu.