-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
category/accessibilityIssues or PRs related to accessibilityIssues or PRs related to accessibilitycategory/documentationIssues or PRs about documentation or the website itselfIssues or PRs about documentation or the website itself
Description
The docs for getOptionLabel
indicate that the only valid return type is a string
.
However, it seems like a return value of any React node will work, such as the following:
getOptionLabel={(data) => <b>{data.name}</b>}
Should/can the docs be updated to show that anything React can render is an acceptable return type?
Metadata
Metadata
Assignees
Labels
category/accessibilityIssues or PRs related to accessibilityIssues or PRs related to accessibilitycategory/documentationIssues or PRs about documentation or the website itselfIssues or PRs about documentation or the website itself