Button Group
A row of secondary-style buttons fused into one control - shared border, radius/2lg and shadow/xs from the Button family, items divided by hairlines with only the outer corners rounded. For a segmented switcher with an animated thumb, reach for Segmented Control instead; the button group is the toolbar/filter flavor.
Installation
Download the React source package, install its dependencies, and import the component with its shared styles.
'use client';
import '@helios-ui/react/styles.css';
import{NativeScope,NativeButtonGroupExample}from'@helios-ui/react';
export function Example(){return <NativeScope><NativeButtonGroupExample/></NativeScope>}Selected item
selected keeps an item on its hover fill and sets aria-pressed - drive it from state for single or multi-select toolbars.
usage
'use client';
import '@helios-ui/react/styles.css';
import{BoardNativeSectionExample}from'@helios-ui/react';
export function Example(){return <BoardNativeSectionExample slug="button-group" id="selected"/>}Icon only
iconOnly items collapse to squares - give each an aria-label since there's no visible text.
usage
'use client';
import '@helios-ui/react/styles.css';
import{BoardNativeSectionExample}from'@helios-ui/react';
export function Example(){return <BoardNativeSectionExample slug="button-group" id="icon-only"/>}