How to add a label to ActionGroup #3674
-
I want to add a label to an What is the correct way to do this with React Spectrum? Should I recreate the style using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
ActionGroup accepts an Aria labelledby https://react-spectrum.adobe.com/react-spectrum/ActionGroup.html#props |
Beta Was this translation helpful? Give feedback.
ActionGroup accepts an Aria labelledby https://react-spectrum.adobe.com/react-spectrum/ActionGroup.html#props
And we do have an undocumented Label component. https://www.npmjs.com/package/@react-spectrum/label not sure what our plans are for officially supporting that, but it hasn't changed much. You could use that for now. You'd need to look at the source and stories for how to use it.