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

    Variable CheckboxWidgetConst

    CheckboxWidget: (props: CheckboxWidgetProps) => Element & {
        Root: (props: CheckboxWidgetRootProps) => Element;
    } = ...

    A checkbox whose checked state can persist: the preset (<CheckboxWidget>Accept terms</CheckboxWidget>), and Root, the stored checkbox, to compose with the styled Checkbox.Indicator.

    Type Declaration

      • (props: CheckboxWidgetProps): Element
      • The common checkbox: the box and its label, whose checked state can persist. The root's own props pass through; any other arrangement composes CheckboxWidget.Root.

        Parameters

        Returns Element

    <label>
    <CheckboxWidget.Root data-key='practic_app_terms' data-attr='value'>
    <Checkbox.Indicator />
    </CheckboxWidget.Root>
    I accept the <a href='/terms'>terms</a>
    </label>