Expose FocusableProvider in `react-aria`
Author: filipw01Created Jan 19, 2023Updated Sep 18, 2026
Labelsenhancementgood first issue
Feature Request
Expose FocusableProvider from react-aria
Expected Behavior
Have the ability to inject custom dom attributes into focusable elements
Current Behavior
public useFocusable uses context to inject dom attributes, but the provider is not exposed to the public
Possible Solution
Export FocusableProvider the same way useFocusable is
Context
I'm working on a Tooltip component and I noticed spectrum uses FocusableProvider to implement a nice API where props are automatically injected. I want to do the same. Right now I'm using @react-aria/focus to do that, but I think that should be part of react-aria package itself
Examples
Example usage in react-spectrum
Your Company/Team
Chili Piper
Source: adobe/react-spectrum