-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
category/documentationIssues or PRs about documentation or the website itselfIssues or PRs about documentation or the website itself
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>)
}
DavidVorac, nonybrighto and Jonydu05
Metadata
Metadata
Assignees
Labels
category/documentationIssues or PRs about documentation or the website itselfIssues or PRs about documentation or the website itself