@dxos/react-ui
    Preparing search index...

    Type Alias SwitchProps

    SwitchProps: ThemedClassName<Omit<SwitchPrimitive.RootProps, "children">> & {
        "aria-label"?: string;
        indeterminate?: boolean;
        label?: ReactNode;
    }

    Type declaration

    • Optionalaria-label?: string
    • Optionalindeterminate?: boolean

      Neither on nor off (e.g. several edited objects disagree): the track is dimmed until it is set.

    • Optionallabel?: ReactNode

      Visible label beside the track; without one pass aria-label.