function createButtonGroup
createButtonGroup(
buttons: HTMLButtonElement[],
options?: { gap?:
"sm"
| "md"
| "lg"
; }
,
): HTMLDivElement

Create a button group container

Parameters

buttons: HTMLButtonElement[]
  • Array of button elements
optional
options: { gap?:
"sm"
| "md"
| "lg"
; }
  • Group options

Return Type

HTMLDivElement

HTMLDivElement containing buttons

Usage

import { createButtonGroup } from ".";