Free
Pro

Split button

The main button runs the primary action. The chevron opens related actions.

Pro

Pro — licensed

Split button — part of Ply Pro

Unlock it plus 108 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.

Unlock Pro

Save

Nothing yet

Installation

bash
npx ply-ui-cli add split-button

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash
npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)
// Install: npx ply-ui-cli add split-button
// Paths are relative to aliases.components (default: src/app/components)
import { SplitButtonComponent, SplitButtonItem } from './split-button/split-button.component';

@Component({
  selector: 'app-your-component',
  imports: [
    SplitButtonComponent
  ],
  template: `...`
})
export class YourComponent {}

API for split-button — generated from JSDoc in the library source.

API reference for split-button
APIMemberTypeDefaultDescription
SplitButtonItemlabelstring — —
SplitButtonItemvaluestring — —
SplitButtonItemdisabledboolean — —
ply-split-buttonclassstring''Extra host classes merged via `cn()`.
ply-split-buttonlabelunknown'Save'Label of the primary action.
ply-split-buttonitemsSplitButtonItem[][]Menu actions.
ply-split-buttonmenuLabelstring''Accessible name of the menu button.
ply-split-button(action)void — Fires when the primary action is clicked.
ply-split-button(itemSelect)SplitButtonItem — Fires when a menu item is chosen.