UNPKG

@sertec/toggle-switch

Version:
14 lines (13 loc) 517 B
import { InputHTMLAttributes } from 'react'; import { CaptionProps } from '@sertec/input-wrapper'; import { FontWeight, Variant } from '@sertec/types'; export interface ToggleSwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'required' | 'type' | 'children' | 'placeholder'> { label?: string; required?: boolean | CaptionProps; caption?: CaptionProps; htmlFor?: string; variant?: Variant; requiredMessage?: string; readable?: boolean; 'data-label-weight'?: FontWeight; }