Skip to content

Switch

Shared compact binary control for Pro UI.

export function Switch({
checked,
onChange,
label,
ariaLabel,
className = '',
disabled = false,
labelPosition = 'before',
title,
testId,
}: SwitchProps): any;

export type SwitchRenderable = any;

export type SwitchProps = {
checked: boolean;
onChange: (checked: boolean) => void;
label: SwitchRenderable;
ariaLabel?: string;
className?: string;
disabled?: boolean;
labelPosition?: 'before' | 'after';
title?: string;
testId?: string;
};