@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
20 lines (19 loc) • 772 B
TypeScript
import { FC } from 'react';
import { SelectProps } from '@mui/material/Select';
import { ControllerProps, UseControllerProps } from 'react-hook-form';
import type { OptionType } from '../../models';
export type FormSelectProps = {
label: string;
name: string;
options: ReadonlyArray<OptionType>;
includeNoneOption?: boolean;
rules?: UseControllerProps['rules'];
defaultValue?: string;
customSelectItem?: FC<any>;
controllerProps?: Omit<ControllerProps, 'name' | 'control' | 'rules' | 'defaultValue' | 'render'>;
} & SelectProps;
/**
* @param {FormSelectProps} props - provides the properties fo React component
* @return {ReactNode} - provides the react component to be ingested
**/
export declare const FormSelect: FC<FormSelectProps>;