UNPKG

@devfamily/admiral

Version:

Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.

22 lines (21 loc) 790 B
/// <reference types="react" /> import type { SwitchChangeEventHandler, SwitchClickEventHandler } from 'rc-switch'; export declare type SwitchSizeType = 'S' | 'M' | 'L'; export interface SwitchProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange' | 'onClick'> { size?: SwitchSizeType; className?: string; prefixCls?: string; disabled?: boolean; loading?: boolean; checkedChildren?: React.ReactNode; unCheckedChildren?: React.ReactNode; onChange?: SwitchChangeEventHandler; onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>; onClick?: SwitchClickEventHandler; tabIndex?: number; checked?: boolean; defaultChecked?: boolean; loadingIcon?: React.ReactNode; style?: React.CSSProperties; title?: string; }