Skip to content

Toggle ​

Variable of @v12-engine/client/kit

ts
Toggle: typeof ToggleBox & {
    Root: (props: ArkSwitch.RootProps) => JSX.Element;
    Control: (props: ArkSwitch.ControlProps) => JSX.Element;
    Thumb: (props: ArkSwitch.ThumbProps) => JSX.Element;
    Label: (props: ArkSwitch.LabelProps) => JSX.Element;
    HiddenInput: (props: ArkSwitch.HiddenInputProps) => JSX.Element;
}

An on-off switch, as ToggleBox, with Ark's parts (Toggle.Root, Toggle.Thumb...) for one put together otherwise