Closed
Description
Hi, congrats on the big v5 release!
After upgrading to v5, use of custom props on Select cause errors in Typescript. They still seem to work but require ts-ignore directive to silence the error.
Example:
<Select<MyOption>
id={id}
options={options}
{... more props ...}
components={{ SingleValue }}
myCustomProp='foobar'
/>
function SingleValue({ children, ...props }: SingleValueProps<MyOption>) {
return (
<div>
<label htmlFor={selectProps.name}>
{props.selectProps.myCustomProp}
</label>
<components.SingleValue {...props}>{children}</components.SingleValue>
<div className="ml-1">
<components.DownChevron />
</div>
</div>)
}