← All proposals

Agentic Button

A separate component, `AgenticButton`, for an action the agent does:

Extends a PDS componentOpen in Storybook

proposals/AgenticButton/custom.md27 lines · View on GitHub

Custom and net-new: AgenticButton

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 Button (since 2026-11-20).

Additions to existing PDS components

  • On Button: variant='agentic' (renders the secondary look plus the class .pds-button--agentic) and the isAnimated prop (adds .pds-button--animated, only with the agentic variant).
    • Classes: .pds-button--agentic (the gradient border), .pds-button--animated (the shimmer).
    • One scoped rule: .pds-button--agentic.pds-button--loading.pds-pulse { background-image: none }, so the loading pulse covers the gradient. It used to be an edit in the base button.css; it now lives in agentic-button.css.

Net-new props

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

Custom CSS variables

  • --button-border-color, --button-border-color-active, --button-border-color-hover — the Button's variables, set to transparent on .pds-button--agentic so the gradient shows as the border.

Raw values kept on purpose

None.