docs: add new React Aria hooks docs#10153
Open
reidbarber wants to merge 58 commits into
Open
Conversation
|
Build successful! 🎉 |
|
Build successful! 🎉 |
Member
|
My initial thought last year when we were working on docs was that the hook docs would be more like how you'd use them together with RAC rather than building the components standalone (as our old docs did). Like for example the useSelect docs could reuse the Button/ListBox from RAC rather than re-creating them from scratch. |
…ts from RAC vanilla starter
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
devongovett
reviewed
Jun 9, 2026
devongovett
reviewed
Jun 9, 2026
Member
|
Good start! Added a few initial thoughts above. I think we'll also need to create a page at some point that describes when you'd want to use hooks, and explains that they can be used together with RAC (as some of the examples show here) or standalone, and how to do both. |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #5181
Migrates the React Aria component-level hook documentation to the new docs site.
Format is:
FunctionAPI/InterfaceTypevanilla-startercomponents (Button, Popover, Dialog, Calendar, ListBox, etc.) and feed the hook's return values in through context, following the "Reusing children" pattern. Leaf/primitive hooks build from scratch with minimal styling (reusing the vanilla CSS / design tokens for focus rings, etc.).Not included / follow-ups:
useTreeState, might be too complex for now.Open questions:
"Provides the behavior and accessibility implementation for a..."isn't helpful.useFocusableorusePreventScroll?✅ Pull Request Checklist:
📝 Test Instructions:
Open the search menu and navigate to the Hooks section to see the new pages. Links are also featured under the "Related pages" section of the table of contents of the respective RAC component.
🧢 Your Project: