fluentui
fluentui copied to clipboard
Dropdown: support customization of Element-type error message
Describe the feature that you would like added
Just like onGetErrorMessage of TextField, consumer could define their own JSX Elements for error message.
Currently, Dropdown only supports a string-type prop errorMessage.
What component or utility would this be added to
Dropdown
Have you discussed this feature with our team, and if so, who
No
Additional context/screenshots
Customization example:

I’ve added this to our backlog for review but it’s low on our priority list as we’re likely not going to get to it immediately due to the fact we’re currently focused on larger coherence work items and enhancements to our performance.
I'm designing a component for the Portal framework that generates validations with links for partners to use. It would be great if all controls with validations could have a unified errorMessage typing so these errors can be displayed correctly.
We're also interested in this feature for inputs other then TextField (dropdown, toggle, combo, choice etc..) We are using an icon inside our error messages and would like to have all the defaults used by fluent without writing a custom component for it.
My team would also benefit from this feature. Do you have any rough estimates when do you plan to do it? Thanks
This is not something the core team is working on now, but this is a good opportunity for a contribution and something we'd love to collaborate on.
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes.
Still require assistance? Please, create a new issue with up-to date details.