@redocly/theme
Version:
Shared UI components lib
11 lines (10 loc) • 357 B
TypeScript
import type { JSX } from 'react';
export type SwitchProps = {
value: boolean;
onChange: (value: boolean) => void;
onFocus?: () => void;
disabled?: boolean;
stopPropagation?: boolean;
className?: string;
};
export declare function Switch({ value, disabled, onChange, onFocus, stopPropagation, className, }: SwitchProps): JSX.Element;