UNPKG

funda-ui

Version:

React components using pure Bootstrap 5+ which does not contain any external style and script libraries.

26 lines (25 loc) 865 B
import React from 'react'; export declare type SwitchOptionChangeFnType = (arg1: any, arg2: any) => void; export declare type SwitchProps = { wrapperClassName?: string; controlClassName?: string; value: string | boolean; label?: React.ReactNode | string; name?: string; disabled?: any; required?: any; checked?: boolean; /** -- */ id?: string; style?: React.CSSProperties; tabIndex?: number; [key: `data-${string}`]: string | undefined; /** This function is called whenever the data is updated. * Exposes the JSON format data about the option as an argument. */ onChange?: SwitchOptionChangeFnType | null; onBlur?: (e: any) => void; onFocus?: (e: any) => void; }; declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<unknown>>; export default Switch;