ToggleProps beta
Interface of @v12-engine/client/kit
ts
export interface TogglePropsWhat a Toggle is given: whether it is on, and what to do when it is flipped
Members
ark
ts
ark?: Partial<Omit<ArkSwitch.RootProps, 'checked' | 'children' | 'class' | 'label'>>;The rest of Ark's switch, which it is (name, readOnly...): Ark's own, not the kit's to promise
class
ts
class?: string;CSS classes added to the switch's track
disabled
ts
disabled?: boolean;Whether it cannot be flipped: dimmed
label
ts
label?: string;What it switches, for a screen reader, when nothing next to it says so
on
ts
on: boolean;Whether the switch is on
onValue
ts
onValue: (on: boolean) => void;Told the new state when the switch is flipped