(react) react-hook-form Select example

Our form elements needs to be usable with react-hook-form
This commit is contained in:
Romain Le Cellier
2023-07-31 15:21:55 +02:00
parent 4e53857159
commit e3563f85d1
6 changed files with 218 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ export type SelectProps = PropsWithChildren &
onChange?: (event: {
target: { value: string | number | undefined | string[] };
}) => void;
onBlur?: (event: {
target: { value: string | number | undefined | string[] };
}) => void;
disabled?: boolean;
clearable?: boolean;
multi?: boolean;