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
| Name | Type | Default | Description |
|---|---|---|---|
label | string | — | Main action text; the default slot overrides it. |
icon | string | — | Leading RemixIcon on the main action. |
menuLabel | string | — | Required. aria-label and tooltip of the caret. |
menuId | string | — | id of the menu the caret controls (aria-controls). |
v-model:open | boolean | false | Drives aria-expanded and rotates the chevron. Toggled by the caret. |
disabled | boolean | false | Disables both halves. |
@click | (e: MouseEvent) | — | The main action was pressed. |
@menu | (e: MouseEvent) | — | The caret was pressed; open your menu. |