← All proposals

Agentic Menu Button

A separate component, `AgenticMenuButton`, for a menu of actions the agent does:

Extends a PDS componentOpen in Storybook

proposals/AgenticMenuButton/custom.md25 lines · View on GitHub

Custom and net-new: AgenticMenuButton

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

Additions to existing PDS components

  • On MenuButton: variant='agentic' (label mode passes it to the Button; iconOnly passes it to the IconButton).
  • On .pds-icon-button: .pds-icon-button--agentic (the Icon Button proposal's agentic variant), which the icon-only open-state rule in agentic-menu-button.css targets.

Net-new props

  • variant='agentic': a new value on the existing variant prop of MenuButton. It is the one value that also applies with iconOnly.

Custom CSS variables

  • --icon-button-fill — set on the expanded icon-only trigger (button.pds-menu-button__trigger--icon-only.pds-icon-button--agentic[aria-expanded='true']); the Icon Button's fill variable.

Raw values kept on purpose

None.