Actions

Button Group

Related buttons joined into one horizontal or vertical group, with optional separators and a split menu.

Class nameTypeDescription
joinplf:joinComponentJoins the join-item children into one control
join-itemplf:join-itemPartA joined item; only the outer corners stay round
join-separatorplf:join-separatorPartA line between filled items
join-verticalplf:join-verticalDirectionStacks the items at equal width

Name the group with aria-label or aria-labelledby. Only direct children with join-item are joined.

Separator

Set --plf-button-group-separator-color to a color that shows against the fill.

Icon buttons

An icon-only button needs an aria-label.

Split button

The menu takes no join-item.

React

ButtonGroup from @pelatform/react renders this group and gives each Button and Toggle inside it join-item; give a link the class yourself.

Prop Values Default
orientation horizontal, vertical horizontal

The part is ButtonGroupSeparator; the other props are a div’s, className and ref included.

CSS variables

Button Group has no JavaScript of its own. Button variables still style each button.

Variable Default
--plf-button-group-separator-color --plf-color-input

Built with Pelatform UIv0.1.0

Components

Getting started

Foundations

Components

Actions

Data display

Navigation

Feedback

Data input

Layout

Advanced

Integrations

Blocks

Application

Authentication

Icons