Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "button-group"

Index

Type aliases

ButtonGroup

ButtonGroup: (_: any, args: ButtonGroupArgs, ...buttons: ButtonGroupItem[]) => any

Type declaration

Functions

Const bt

Const buttonGroup

  • Higher order function to create a new stateless button group component, pre-configured via user supplied options. The returned component function accepts the following arguments:

    • hdom context object (unused)
    • partial ButtonGroupArgs object (extra attribs, disabled flag)
    • button group items (varargs)

    Any attribs provided as arg via ButtonGroupArgs are merged with the default options provided to the HOF. If disabled is true, ALL buttons in the group will be disabled, regardless of their individual settings. The group can have any number of elements, given as varargs.

    Parameters

    Returns ButtonGroup

Const groupBody

Generated using TypeDoc