Skip to content

Allow component in labelKey #832

Closed
Closed
@brettdewoody

Description

@brettdewoody

Is your feature request related to a problem? Please describe.
No, it is clearly documented that labelKey should return a string. This request is to enable labelKey to return JSX so the selected item can be formatted. Similar to how renderToken works.

Describe the solution you'd like
Enable labelKey to return JSX so the selected item can be formatted. Similar to how renderToken works.

How is this solution useful to others?
Displaying a renderLabel (or ability to return JSX in labelKey) would beconsistent with renderToken.

Describe alternatives you've considered
It might be possible to use renderInput to achieve this but that adds complexity.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions