GitHub

Reference machines

checkbox

interface 2 type 4 function 1
interface Interfaces 2

# CheckboxContext

Members

toggles
toggles: number

Number of user-initiated toggles since construction.

value
value: CheckboxValue

Mirrored as aria-checked ("true" / "false" / "mixed").

type Type Aliases 4

# CheckboxValue

CheckboxValue = "unchecked" | "checked" | "mixed"

The visible value. 'mixed' = indeterminate (parent w/ partly-checked children).

function Functions 1

# createCheckboxMachine ( )

createCheckboxMachine(input?): CheckboxMachine

Construct a fresh Checkbox machine.

Parameters

input?
CreateCheckboxInput = {}

Returns

CheckboxMachine