Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Function ToggleWidget

    • Shows a toggle button whose pressed state can persist. The toggle's own props, such as aria-label and disabled, pass through.

      Parameters

      • props: ToggleWidgetProps

        Toggle props. children: What the button shows, such as Bold or an icon. initialValue: Whether it starts pressed until a state is stored; unpressed by default. data-attr: Attribute the state persists under; without it, the state stays local. onPressedChange: Called after each change is stored.

      Returns Element