Skip to main content
Version: 1.x

@microsoft/fast-foundation > Checkbox

Checkbox class

A Checkbox Custom HTML Element. Implements the ARIA checkbox.

checked-indicator - The checked indicator

indeterminate-indicator - The indeterminate indicator

  • The default slot for the label

control - The element representing the visual checkbox control

label - The label

change - Emits a custom change event when the checked state changes

Signature:
export declare class Checkbox extends FormAssociatedCheckbox 

Constructors

ConstructorModifiersDescription
(constructor)()Constructs a new instance of the Checkbox class

Properties

PropertyModifiersTypeDescription
indeterminatebooleanThe indeterminate state of the control
readOnlybooleanWhen true, the control will be immutable by user interaction. See readonly HTML attribute for more information.