welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
10 lines (9 loc) • 417 B
TypeScript
import { CheckboxCheckOptions } from '@ariakit/react';
import { ComponentPropsWithRef, InputHTMLAttributes } from 'react';
export type ToggleProps = Omit<CheckboxCheckOptions<'input'> & ComponentPropsWithRef<'input'> & InputHTMLAttributes<HTMLInputElement>, 'size'> & ToggleOptions;
interface ToggleOptions {
checkedIcon?: JSX.Element;
size?: 'md' | 'sm' | 'xs';
uncheckedIcon?: JSX.Element;
}
export {};