import React, { ChangeEvent, FocusEvent, ReactNode } from 'react';
import { UseFormProps } from 'react-hook-form';
import { FieldNamesType, FieldValidationMethodType, OptionType } from '../../types';
export interface SelectProps {
/**
* the text of the button or selected item
*/
title: string | ReactNode;
/**
* the text of the error
*/
error?: string;
/**
* if the required should added or not
*/
required?: boolean;
/**
* if the optional text should be shown or not
*/
optional?: boolean;
/**
* the list options of the button
*/
options?: OptionType[];
id?: string;
name: FieldNamesType;
theme?: string;
/**
* Classes to be added to the `
` wrapping the label and select.
*/
labelTheme?: string;
/**
* Classes to be added to the `