UNPKG

bnk-components

Version:

Reusable React components for Issaglam UI - Modern, responsive UI components with TypeScript support

33 lines (32 loc) 1.06 kB
import React from 'react'; import './CheckBox.css'; export interface CheckBoxProps { checked?: boolean; defaultChecked?: boolean; disabled?: boolean; indeterminate?: boolean; label?: string; name?: string; value?: string; size?: 'small' | 'medium' | 'large'; variant?: 'default' | 'primary' | 'success' | 'warning' | 'danger'; className?: string; style?: React.CSSProperties; labelPosition?: 'left' | 'right'; required?: boolean; error?: boolean; errorMessage?: string; helperText?: string; id?: string; onChange?: (checked: boolean) => void; onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void; onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void; onClick?: (event: React.MouseEvent<HTMLInputElement>) => void; formObject?: { model: any; setModel?: (model: any) => void; }; fieldPath?: string; } declare const CheckBox: React.ForwardRefExoticComponent<CheckBoxProps & React.RefAttributes<HTMLInputElement>>; export default CheckBox;