react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Add contextual help support to all form fields

Open devongovett opened this issue 3 years ago • 8 comments

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.

image

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.

devongovett avatar Sep 15 '22 19:09 devongovett

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.

devongovett avatar Sep 15 '22 20:09 devongovett