UNPKG

funda-ui

Version:

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

29 lines (28 loc) 1.04 kB
import React from 'react'; export declare type CheckboxOptionChangeFnType = (e: React.ChangeEvent<HTMLInputElement> | null, val: boolean, element: HTMLElement) => void; export declare type CheckboxProps = { contentRef?: React.ForwardedRef<any>; wrapperClassName?: string; controlClassName?: string; itemSelectedClassName?: string; value: string | boolean; label?: React.ReactNode | string; name?: string; disabled?: any; required?: any; checked?: boolean; indeterminate?: 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?: CheckboxOptionChangeFnType | null; onBlur?: (e: any) => void; onFocus?: (e: any) => void; }; declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<unknown>>; export default Checkbox;