Skip to content

Instantly share code, notes, and snippets.

@alanfoandrade
alanfoandrade / AsyncSelect.tsx
Created August 22, 2021 17:59
react-select (async) with chakra and react-hook-forms
import {
FormLabel,
FormControl,
FormErrorMessage,
useTheme,
} from '@chakra-ui/react';
import { Control, Controller, FieldError } from 'react-hook-form';
import { OptionTypeBase, StylesConfig } from 'react-select';
import ReactAsyncSelect, { AsyncProps } from 'react-select/async';
@kimumu-asia
kimumu-asia / AsyncSelect.tsx
Created March 9, 2023 03:33 — forked from alanfoandrade/AsyncSelect.tsx
react-select (async) with chakra and react-hook-forms
import {
FormLabel,
FormControl,
FormErrorMessage,
useTheme,
} from '@chakra-ui/react';
import { Control, Controller, FieldError } from 'react-hook-form';
import { OptionTypeBase, StylesConfig } from 'react-select';
import ReactAsyncSelect, { AsyncProps } from 'react-select/async';