@jigoooo/shared-ui
Version:
A reusable React component library and design system with TypeScript support, built on Vite for seamless integration and optimized performance.
21 lines (20 loc) • 870 B
TypeScript
import { Transition } from 'framer-motion';
import { CSSProperties } from 'react';
import { SwitchDimensions } from '../model/switch-type.ts';
export declare const getSwitchContainerStyle: ({ disabled, containerStyle, }: {
disabled: boolean;
containerStyle?: CSSProperties;
}) => CSSProperties;
export declare const getSwitchBarStyle: ({ dimensions, disabled, isOn, barColor, }: {
dimensions: SwitchDimensions;
disabled: boolean;
isOn: boolean;
barColor: string;
}) => CSSProperties;
export declare const getSwitchThumbStyle: (dimensions: SwitchDimensions) => CSSProperties;
export declare const getSwitchLabelStyle: ({ disabled, labelStyle, }: {
disabled: boolean;
labelStyle?: CSSProperties;
}) => CSSProperties;
export declare const defaultSwitchTransition: Transition;
export declare const defaultSwitchDisableTransition: Transition;