← All proposals

Agentic Split Button

A separate component, `AgenticSplitButton`, a copy of the PDS v2 Split Button, so the engineer's port is mostly a copy:

Extends a PDS componentOpen in Storybook

proposals/AgenticSplitButton/custom.md31 lines · View on GitHub

Custom and net-new: AgenticSplitButton

Everything in this proposal that is not plain PDS v2. npm run check:tokens reads this file: each net-new class, custom CSS variable and raw value found in the code must appear here in backticks.

Net-new components

None. This is an addition to SplitButton (since 2026-11-20).

Additions to existing PDS components

  • On SplitButton: variant='agentic' (wrapper classes pds-split-button--secondary plus .pds-split-button--agentic) and the isAnimated prop (adds .pds-split-button--animated, only with the agentic variant).
    • Classes: .pds-split-button--agentic (the gradient border around the whole control), .pds-split-button--animated (the shimmer).

Net-new props

  • variant='agentic': a new value on the existing variant prop.
  • isAnimated: a new prop on SplitButton, default false; shimmers the border.

Custom CSS variables

  • --button-height — the Button's variable, set on .pds-button--s and .pds-button--m inside .pds-split-button--agentic; two border widths shorter so the control matches a standalone Button.
  • --split-button-fill — set on .pds-split-button--agentic; the fill layer painted over the gradient. It is the secondary background (--pds-color-button-secondary-background-default), because the agentic wrapper is always the secondary look; it is not a per-variant background.

Stand-ins (not part of the proposal)

  • split-button-base.css: a verbatim copy of the package split-button.css, kept because the package CSS is layered (@layer pds-v2) and the local Button copy is not, so the local Button would override it. Not ported.

Raw values kept on purpose

None.