phx-react
Version:
PHX REACT
28 lines (27 loc) • 853 B
TypeScript
import React, { InputHTMLAttributes } from 'react';
import { UseFormRegisterReturn } from 'react-hook-form';
export interface ActiveData {
activeType: 'default' | 'danger';
isActive: boolean;
}
export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
className?: string;
children?: any;
label?: string;
title?: string;
helpText?: string;
expanded?: boolean;
register?: UseFormRegisterReturn;
onChange?: any;
error?: boolean;
errorType?: 'required-field' | 'duplicate-field';
id?: string;
checkType?: 'default' | 'with-border';
disabled?: boolean;
activeData?: ActiveData;
isLarge?: boolean;
isShowHelpText?: boolean;
inputRef?: React.RefObject<HTMLInputElement>;
stopPropagation?: boolean;
}
export declare const PHXCheckbox: React.FC<CheckboxProps>;