UNPKG

react-custom-switcher

Version:

Multi-option Switch/Toggle component for React with dragging, snap and customizable UI

15 lines (14 loc) 832 B
import { CustomSwitcherVariant } from './CustomSwitcher.types'; export declare const determineScale: (scale: boolean | number) => number; export declare const determineSwitchSize: (size: number | undefined, variant: CustomSwitcherVariant) => number; export declare const determineColor: (color: string | undefined, disabled: boolean) => string; export declare const applyConstraints: (translate: number, containerWidth: number, draggableWidth: number) => number; export declare const checkIfMobileOrTablet: () => boolean; export declare const disableScroll: (isMobileOrTablet: boolean, setSelectBodyStyles: ({ height, overflow }: { height: string; overflow: string; }) => void) => void; export declare const enableScroll: (isMobileOrTablet: boolean, selectBodyStyles: { height: string; overflow: string; }) => void;