
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@spectrum-web-components/button-group
Advanced tools
`sp-button-group` delivers a set of buttons in horizontal or vertical orientation while ensuring the appropriate spacing between those buttons.
sp-button-group delivers a set of buttons in horizontal or vertical orientation while ensuring the appropriate spacing between those buttons.
yarn add @spectrum-web-components/button-group
Import the side effectful registration of <sp-button-group> via:
import '@spectrum-web-components/button-group/sp-button-group.js';
When looking to leverage the ButtonGroup base class as a type and/or for extension purposes, do so via:
import { ButtonGroup } from '@spectrum-web-components/button-group';
A button group can be either horizontal or vertical in its orientation. By default, a button group is horizontal. Use vertical option when horizontal space is limited.
<sp-button-group>
<sp-button>Button 1</sp-button>
<sp-button>Longer Button 2</sp-button>
<sp-button>Short 3</sp-button>
</sp-button-group>
<sp-button-group vertical>
<sp-button>Button 1</sp-button>
<sp-button>Longer Button 2</sp-button>
<sp-button>Short 3</sp-button>
</sp-button-group>
Review the guidelines for the button children.
1.9.0 (2025-10-13)
sp-icons-workflow: - Upgraded to @adobe/spectrum-css-workflow-icons@5.0.0. - Includes changes from previous a4u upstream releases: - Added S2_Icon_HeartFilled_20_N.svg, updated S2_Icon_SpeedFast_20_N.svg. - Replaced all 22×20px Cloud State icons with 20px variants. - Removed deprecated multi-colored error icon. Added new Cloud State icons (Disconnected, Error, InProgress, Online, Paused, Pending, SlowConnection). - Updated several other icons (CloseCaptions, CommentHide, Community, etc.).
sp-button: - Fixed: Aria-label handling in <sp-button> component.
label property support for programmatic aria-label controlupdate() methodThese changes ensure that aria-labels are properly managed and preserved across component state changes, improving accessibility for screen reader users.
sp-combobox: - Fixed: Pending state handling and accessibility in <sp-combobox> component.
PendingStateController and implemented inline pending state handlinglabel applied-label pending-label)role="presentation" instead of aria-valuetextThese changes improve accessibility for pending states while reducing unnecessary component dependencies.
sp-menu: - Fixed: MenuItem focus stealing from input elements on mouseover by enhancing MenuItem's handleMouseover method to detect when an input element currently has focus and prevent stealing focus in those cases.
sp-alert-dialog: - Fixed: Make the divider color transparent only for Spectrum 2 theme
sp-picker: - Fixed: Picker border color should be hidden in S2 theme
sp-textfield: - Fixed: Update border radius and border width for different t-shirt sizes for textfield component for S2 and Express themes
sp-textfield: - Fixed: Update border color and block padding inside the textfield and textarea components for S2 and Express themes
sp-picker: - Fixed: Pending state handling and accessibility in <sp-picker> component.
PendingStateController and implemented inline pending state handlingicon label applied-label pending-label)role="presentation" instead of aria-valuetextThese changes improve accessibility for pending states while reducing unnecessary component dependencies.
sp-progress-circle: - Fixed: Accessibility warning logic in <sp-progress-circle> component.
role="progressbar" is explicitly setThese changes ensure accessibility warnings are only shown when appropriate and improve overall accessibility compliance.
sp-reactive-controllers: - Fixed: Accessibility and caching in PendingStateController.
role="presentation" for better accessibility compliance<sp-button> componentThese changes improve accessibility compliance and aria-label management for components using the pending state controller.
sp-help-text: - Fixed: Update block paddings for S2 and Express themes
sp-field-label: - Fixed: Update block paddings for S2 and Express themes
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.