Button Group
Live Demos HubButton Group
Interactive production-grade hypermedia component for HTMXUI.
Interactive Preview
{buttons}
HTML Source
<!--
Component: button-group.html
Configurable State: themeColor ('primary'|'secondary'|'destructive'), size ('sm'|'md'|'lg'), isOpen (boolean)
Usage: Bind styles dynamically using hx-class="{ 'bg-primary': themeColor === 'primary' }" or hx-style="{ width: size === 'lg' ? '100%' : 'auto' }"
-->
<div hx-ext="reactive" hx-state="{ themeColor: \'primary\', size: \'md\', isOpen: false }" class="inline-flex rounded-md shadow-sm" role="group">
{buttons} <!-- Should have appropriate border radius classes for first and last child -->
</div>