@blockscout/ui-toolkit
Version:
A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects
17 lines (16 loc) • 587 B
TypeScript
import { Switch as ChakraSwitch } from '@chakra-ui/react';
import * as React from 'react';
export interface SwitchProps extends ChakraSwitch.RootProps {
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
labelProps?: ChakraSwitch.LabelProps;
rootRef?: React.Ref<HTMLLabelElement>;
trackLabel?: {
on: React.ReactNode;
off: React.ReactNode;
};
thumbLabel?: {
on: React.ReactNode;
off: React.ReactNode;
};
}
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;