FieldCheckboxProps interface

Module @runic-artifex/react in @runic-artifex/react 0.23.0

interface FieldCheckboxProps

What useField spreads on a checkbox (<input type="checkbox">): a boolean field. onChange reads checked.

Properties

checked

readonly checked: boolean;

No documentation.

onChange

readonly onChange: (event: {
    readonly currentTarget: {
        readonly checked: boolean;
    };
}) => void;

No documentation.

onBlur

readonly onBlur: () => void;

Commits the field (see FieldHandle.commit).

"aria-invalid"

readonly "aria-invalid": boolean;

True while the field has validation messages (errors) or an error.