Skip to content

AisButtonGroup ​

AisButtonGroup is an AisButton container that will present its children as a single contiguous group. Button groups are typically not the primary focus on a page and should be styled accordingly. The default variant and alternate variants are good starting points. It is best not to mix and match variants. If you want to capture a selection in a button group, see AisRadioGroup's buttons option. Let us know if you would like similar functionality in AisCheckboxGroup.

Props ​

variant ​

The variant prop accepts the standard variants and dictates the button styles. The variants are: primary, secondary, default, info, success, warning, and danger. The default value is default.

alternate ​

The boolean prop alternate can be combined with variant to provide an alternate set of button styles. Alternate variants use a lighter background with a visible border.

size ​

Thesize prop controls the button size. The accepted values are: xs, sm, md, lg, and xl. The default value is md. Button groups should typically use md or sm.

rounded ​

The rounded prop controls the border radius of the group. The accepted values are: true, false, md, lg, and full. The default value is rounded.

vertical ​

The vertical prop activates vertical mode for the group. When active, buttons in the group will stack on top of each other instead of spreading out horizontally.

Effects ​

AisButton accepts a number of boolean props that will enable interactive effects on the button group.

press ​

press provides a click animation. This prop defaults to true for button groups.

hover ​

hover matches the UIDS hover animation. This effect is not active by default.

fast ​

hover fast provides a faster version of the UIDS animation. In application interfaces the fast version of the effect is preferred.