I am using the below code:
import Select from "react-select";
<Select
className="form-control-sm"
name="form-field-name"
style={{ fontSize: "medium", color: "black" }}
id="userDocTypeName"
/>
Error"
Type '{ className: string; name: string; style: { fontSize: string; color: string; }; id: string; onChange: (selectValue: any) => void; options: any; value: any; }' is not assignable to type 'IntrinsicAttributes & Omit<PublicBaseSelectProps<any, false, GroupBase<any>>, StateManagedPropKeys> & Partial<...> & StateManagerAdditionalProps<...> & RefAttributes<...>'.
Property 'style' does not exist on type 'IntrinsicAttributes & Omit<PublicBaseSelectProps<any, false, GroupBase<any>>, StateManagedPropKeys> & Partial<...> & StateManagerAdditionalProps<...> & RefAttributes<...>'. Did you mean 'styles'?