# All files / checkbox checkbox.props.ts

100% Statements 2/2
100% Branches 2/2
100% Functions 1/1
100% Lines 2/2

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44

    1x
    1x

     import * as React from "react";
    import { CheckboxClassNameContract, ManagedClasses } from "@microsoft/fast-components-class-name-contracts-base";

    export enum CheckboxSlot {
        label = "label"
    }

    export interface CheckboxManagedClasses extends ManagedClasses<CheckboxClassNameContract> {}
    export interface CheckboxUnhandledProps extends React.AllHTMLAttributes<HTMLElement> {}
    export interface CheckboxHandledProps extends CheckboxManagedClasses {

        /**
         * The id of the checkbox input element
         */
        inputId: string;

        /**
         * The checked state
         */
        checked?: boolean;

        /**
         * The disabled state
         */
        disabled?: boolean;

        /**
         * The indeterminate option
         */
        indeterminate?: boolean;

        /**
         * The onChange event handler
         */
        onChange?: (event?: React.ChangeEvent<HTMLInputElement>) => void;

        /**
         * The checkbox content
         */
        children?: React.ReactNode;
    }

    export type CheckboxProps = CheckboxHandledProps & CheckboxUnhandledProps;