welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
12 lines (11 loc) • 473 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 {
size?: 'lg' | 'md' | 'sm';
/**
* If true, display an eye / eye-slash icon to toggle visibility.
*/
withVisibilityIcon?: boolean;
}
export {};