vira - v33.20.0
    Preparing search index...

    Type Alias ViraCheckboxInputs

    ViraCheckboxInputs: (
        | { allowBlocked?: false; value: boolean }
        | { allowBlocked: true; value: boolean | null }
    ) & PartialWithUndefined<
        {
            attributePassthrough: Partial<
                Record<ViraCheckboxInnerElements, AttributeValues>,
            >;
            fillWhenChecked: boolean;
            fillWhenUnchecked: boolean;
            hasError: boolean;
            isDisabled: boolean;
            isIndeterminate: boolean;
            label: string | HtmlInterpolation;
            stylePassthrough: Partial<Record<ViraCheckboxInnerElements, CSSResult>>;
            useHorizontalLabel: boolean;
        },
    >

    Inputs for ViraCheckbox.

    Type Declaration

    • { allowBlocked?: false; value: boolean }
    • { allowBlocked: true; value: boolean | null }
      • allowBlocked: true

        Enables a third "blocked" state. Clicking cycles empty (null), checked (true), and blocked (false), in that order, and dispatches nullableValueChange instead of valueChange.

      • value: boolean | null

        true renders a check mark, false renders an X mark (blocked), and null renders an empty box.