Skip to content

ButtonGroup

The button group component.

  • Import
    import "@tapsioss/web-components/button-group";
  • Tag
    <tapsi-button-group></tapsi-button-group>

Properties

NameDescriptionTypeDefault Value
orientationDefines the orientation of the button group."horizontal" | "vertical""horizontal"
alignmentSets the alignment of the items within the button group."start" | "center""start"
fluid-itemsIf true, the items in the button group will expand to fill the available space.booleanfalse
labelDefines a string value that can be used to set a label for assistive technologies. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelstring""

Slots

NameDescription
buttonThe slot for buttons.

TIP

You can use slot names as variables:

ts
import { Slots } from "@tapsioss/web-components/button-group";

console.log(Slots.BUTTON); // "button"