canvas-kit
canvas-kit copied to clipboard
FormField: Support multiple messages
🚀 Feature Proposal
Design has requested the ability for FormFields to handle more than a single message and more than one type of message.
Motivation
There can be more than a single error or hint for a form field. The screenshot below shows an example.
Example

@NicholasBoll Is the screenshot coming from design, can we consider that as spec?
@stephanerangaya Yes. It can probably be introduced as a non-breaking change by accepting an array of messages and types
This is no longer a request. We'll re-evaluate if it comes back
Reopening to look at supporting this across Workday
Should check back with design for more up to date specs and development
Not something we are in current need of. Will reopen if this arises again
Not something we are in current need of. Will reopen if this arises again
An example with multiple errors
https://codesandbox.io/s/formfield-multiple-errors-9yzxyg