phx-react
Version:
PHX REACT
16 lines (15 loc) • 573 B
TypeScript
import React, { SelectHTMLAttributes } from 'react';
import { UseFormRegisterReturn } from 'react-hook-form';
import { ComplexAction } from '../types';
export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
className?: string;
register?: UseFormRegisterReturn;
children?: any;
label?: string;
helpText?: string;
error?: boolean;
errorType?: 'required-field' | 'duplicate-field' | 'custom-message';
errorMessageCustom?: string;
labelAction?: ComplexAction;
}
export declare const PHXSelect: React.FC<SelectProps>;