PyBlade/ui
Menu⌄
DocsComponentsButton group

Button group

Joins buttons into one control.

depends on button1 file

Installation

pyblade-ui add button-group

Usage

The tag <pb-ui.button-group> is available in all your templates.

<pb-ui.button-group>
  <pb-ui.button variant="outline">Archive</pb-ui.button>
  <pb-ui.button variant="outline">Report</pb-ui.button>
</pb-ui.button-group>

Examples

Vertical

With an input

Props

PropDefault
orientation'horizontal'

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.