# TallStackUI: Button Group > TallStackUI is a TALL Stack (Tailwind CSS, Alpine.js, Laravel, Livewire) > component library providing 65+ Blade components for building modern web interfaces. A purely visual container that groups one or more `` siblings into a cohesive segment, collapsing adjacent borders, rounding only the outer corners, and isolating focus rings so they sit above neighbours. Mirrors the segmented "button group" pattern from Flowbite and TailwindUI. The group does **not** propagate size or style to its children, and is **not** a segmented control (no selected state, no `wire:model` binding). Each grouped `` keeps full control over its own `color`, `size`, `style`, `icon`, `tooltip`, `loading`, `href`, etc. Only `` is officially supported as a child (works for both regular buttons and the anchor variant via `href`). `` is **not** intended for grouping. Mixing styles or colors across children is allowed and rendered as declared. ## Basic Usage ```blade ``` Vertical orientation: ```blade ``` Mixed styles within the same group (form-footer pattern): ```blade ``` Pagination-style icon-only pair with ARIA label: ```blade ``` ## Attributes | Attribute | Type | Default | Description | |-----------|--------------|---------|-----------------------------------------------------------------------------------------| | vertical | bool | false | When true, lays children top-to-bottom and rounds only top/bottom corners | | label | string\|null | null | Sets `aria-label` on the wrapper. The wrapper always carries `role="group"` regardless. | ## Slots | Slot | Description | |-----------|---------------------------------------------------------------------------------------------| | (default) | One or more `` children. Rendering of each child is unchanged by the parent group | ## Caveats - `` removes the border from the button. Inside a group, the `-ml-px` (or `-mt-px`) overlap collapses into nothing and the dividers between flat siblings disappear. Use `solid`, `outline`, or `light` for the intended visual. - `` is not visually compatible with the group layout and should not be used as a child. ## Soft Customization Soft customization allows you to override default Tailwind CSS classes used by this component at runtime, either through a service provider or scoped per-instance. ### Customization ```php TallStackUi::customize() ->button('group') ->block('wrapper.base', 'your-tailwind-classes'); ``` ### Available Blocks | Block Name | Purpose | |---------------------------|--------------------------------------------------------------------------------------------------| | wrapper.base | Base group styles (`isolate inline-flex shadow-xs`, focus z-index lift, child position relative) | | wrapper.layout.horizontal | Horizontal-only rounding/offset rules applied when `vertical` is false | | wrapper.layout.vertical | Vertical-only rounding/offset rules applied when `vertical` is true |