package
Spectrum UI components in React
npm install react-statelyGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 7 packages.
7.5 MB
Includes dependencies.
6 direct dependencies.
^0.5.0
0.5.24
^3.37.0
3.37.0
^3.12.4
3.12.4
^1.6.0
1.7.0
3.6.9
^3.2.10
3.2.10
Latest published Oct 8, 2026
latest
aspro83
danniintheus@gmail.com
A library of React Hooks that provides cross-platform state management for your design system.
The easiest way to start building a component library with React Stately is by following our getting started guide. It walks through all of the steps needed to install the hooks from npm, and create your first component.
Here is a very basic example of using React Aria.
import {useRadioGroupState} from '@react-stately/radio';
function RadioGroup(props) {
let state = useRadioGroupState(props);
return (
<>
<label>
<input
type="radio"
name={state.name}
checked={state.selectedValue === 'dogs'}
onChange={() => state.setSelectedValue('dogs')}
/>
Dogs
</label>
<label>
<input
React Stately is part of a family of libraries that help you build adaptive, accessible, and robust user experiences. Learn more about React Spectrum and React Aria on our website.