react-spectrum
react-spectrum copied to clipboard
Add contextual help support to all form fields
This adds support for contextual help to all form elements. There is a contextualHelp prop, to which a <ContextualHelp> element can be provided. This way there is no bundle size hit if you don't use contextual help.
Implementation is almost entirely in the Field component, except for sliders. Most of the PR is adding stories and chromatic stories for all components.
Note: contextual help does not work correctly within a Form with side labels. However, side labels are already very broken, so I think this can be fixed later.
Build successful! 🎉
Also note: the prop was added to RadioGroup and CheckboxGroup, but I am waiting to add it there because work on help text is also going on.
Build successful! 🎉
Build successful! 🎉
Build successful! 🎉
Build successful! 🎉
Build successful! 🎉
Build successful! 🎉
Build successful! 🎉