Building a button in React is easy. Building a select menu, date picker, dialog, or drag-and-drop interface that works equally well with a mouse, keyboard, touchscreen, and screen reader is much harder.
That is the problem React Aria solves.
React Aria is Adobe’s open-source library for building accessible React interfaces. It provides components and hooks that handle behavior such as keyboard navigation, focus management, ARIA semantics, pointer interactions, and screen reader announcements. You decide how the interface looks; React Aria helps make it behave correctly.
In this tutorial, you will learn how React Aria works, when to use its components or lower-level hooks, and how to build and style a small accessible component.
What is React Aria?

React Aria is a collection of unstyled React components and hooks maintained by Adobe. It is designed around three core areas:
- Accessibility: WAI-ARIA semantics, keyboard support, focus management, and screen reader behavior
- Interactions: consistent behavior across mouse, touch, keyboard, and assistive technologies
- Internationalization: localized strings, right-to-left interactions, and support for different date, calendar, and numbering systems
React Aria is often described as headless. This means it provides structure, state, and behavior without imposing a visual design system. It does not decide your colors, spacing, typography, borders, or animation style.
Think of a UI component as two layers:
| Layer | Responsibility | Handled by |
|---|---|---|
| Behavior | Keyboard input, focus, selection, ARIA attributes, screen reader support | React Aria |
| Appearance | Colors, spacing, typography, borders, animations | Your CSS or design system |
This separation makes React Aria useful for teams that want a strong accessibility foundation without adopting someone else’s visual style.
Why does React Aria exist?
Native HTML elements should always be your first choice. A native <button> already supports keyboard activation and exposes the correct meaning to assistive technology.
The challenge begins when an interface needs a more complex pattern. Consider a custom select menu. It may need to:
- open with the correct keyboard commands
- move focus through its options
- announce the current value to a screen reader
- support touch and pointer interactions
- close when focus moves away
- work correctly in right-to-left layouts
These details are easy to miss and difficult to test across browsers and devices. React Aria implements these interaction patterns in reusable components and hooks, so each application does not have to recreate them from scratch.
React Aria Components vs. React Aria hooks
React Aria offers two ways to build an interface.
React Aria Components
The react-aria-components package is the easiest place to start. It provides composable, unstyled components such as Button, Select, Dialog, Tabs, Table, and DatePicker.
These components include accessible behavior and expose interaction states through data attributes and render props. You assemble their parts and style them with regular CSS, Tailwind CSS, CSS-in-JS, or another styling solution.
Use React Aria Components when you want:
- a faster implementation
- an accessible structure out of the box
- an API that is easy to compose
- freedom to provide all visual styling
React Aria hooks
The lower-level react-aria package provides hooks such as useButton, useDialog, and useFocusRing. A hook returns the props and behavior needed to make your own element accessible.
Hooks offer more control over markup and integration, but they also require more assembly. They are most useful when you are building a deeply customized design system or adapting accessibility behavior to an existing component architecture.
For most new projects, start with React Aria Components. Move to hooks only when you need control that the component API does not provide.
Build your first React Aria component
Let us create a small button and style its interaction states.
Step 1: Install React Aria Components
Install the package in an existing React application:
npm install react-aria-components
You can use pnpm, Yarn, or Bun instead if that is what your project already uses.
Step 2: Create an accessible button
Create a component named SaveButton.jsx:
import { Button } from "react-aria-components";
import "./SaveButton.css";
export function SaveButton() {
return (
<Button className="save-button" onPress={() => alert("Changes saved")}>
Save changes
</Button>
);
}
This looks similar to a standard React button, but there are two important differences:
Buttonnormalizes mouse, touch, keyboard, and screen reader interactions.onPressrepresents an intentional activation across those input methods, rather than only a browser click event.
React Aria renders a real <button> element, so you keep the semantics and behavior of native HTML while gaining a consistent interaction API.
Step 3: Style its interaction states
Add the following CSS to SaveButton.css:
.save-button {
border: 0;
border-radius: 0.5rem;
padding: 0.625rem 1rem;
background: #4f46e5;
color: white;
font: inherit;
font-weight: 600;
cursor: pointer;
}
.save-button[data-hovered] {
background: #4338ca;
}
.save-button[data-pressed] {
background: #3730a3;
transform: translateY(1px);
}
.save-button[data-focus-visible] {
outline: 3px solid #a5b4fc;
outline-offset: 3px;
}
.save-button[data-disabled] {
cursor: not-allowed;
opacity: 0.5;
}
React Aria exposes states such as data-hovered, data-pressed, and data-focus-visible on the rendered element. This lets CSS respond to interaction state without adding separate React state or event handlers.
The focus style is especially important. data-focus-visible appears when the focus indicator should be shown, such as during keyboard navigation, without forcing the same ring after every pointer interaction.
Step 4: Add a loading and disabled state
Real buttons often need to prevent repeated submissions while an operation is running:
import { Button } from "react-aria-components";
export function SaveButton({ isSaving, onSave }) {
return (
<Button className="save-button" isDisabled={isSaving} onPress={onSave}>
{isSaving ? "Saving…" : "Save changes"}
</Button>
);
}
The isDisabled prop updates both behavior and accessibility semantics. The button cannot be activated while saving, and its disabled state is available to assistive technology and to your CSS.
How composition works in React Aria
Simple components such as buttons can stand alone. Complex patterns are composed from smaller parts. A select menu, for example, includes a label, trigger button, current value, popover, list box, and options:
import {
Button,
Label,
ListBox,
ListBoxItem,
Popover,
Select,
SelectValue,
} from "react-aria-components";
export function FrameworkSelect() {
return (
<Select defaultSelectedKey="react">
<Label>Framework</Label>
<Button>
<SelectValue />
<span aria-hidden="true">▾</span>
</Button>
<Popover>
<ListBox>
<ListBoxItem id="react">React</ListBoxItem>
<ListBoxItem id="vue">Vue</ListBoxItem>
<ListBoxItem id="svelte">Svelte</ListBoxItem>
</ListBox>
</Popover>
</Select>
);
}
Each part renders a DOM element and contributes to the full interaction pattern. React Aria connects the label, value, trigger, popup, and options while handling focus and keyboard navigation.
The component is still unstyled. You can target its default classes, provide your own className values, or use render props to style it based on state.
Key features of React Aria
Accessible behavior
React Aria follows WAI-ARIA patterns and provides support for keyboard navigation, screen readers, focus management, ARIA roles, and announcements. Adobe tests the library with combinations of browsers and screen readers including VoiceOver, JAWS, NVDA, and TalkBack.
Adaptive interactions
A user may interact with the same component using a mouse, keyboard, touchscreen, stylus, or assistive technology. React Aria normalizes these interaction types through APIs such as press, hover, focus, and selection.
Internationalization
React Aria includes localized strings for more than 30 languages. It also supports right-to-left interaction behavior and international date, time, calendar, and number conventions.
Styling freedom
React Aria ships without a visual theme. You can use vanilla CSS, Tailwind CSS, CSS Modules, styled-components, Panda CSS, or the styling system already used by your application.
For broader visual inspiration, the Shadcn Theme Generator demonstrates how color tokens can shape a consistent interface across a shadcn/ui project.
Advanced UI patterns
The library covers more than basic form controls. It includes collections, tables, trees, virtualized content, drag and drop, date and time fields, color pickers, and keyboard multi-selection.
Shadcn blocks are another source of design inspiration for common interface sections such as dashboards, forms, and authentication flows.
Using React Aria with shadcn/ui
React Aria is an independent Adobe project, not a shadcn/ui feature. However, shadcn/ui added React Aria as a first-class component base in July 2026 alongside Base UI and Radix UI.
Developers exploring the wider shadcn/ui ecosystem can also browse shadcnstudio.com for components, examples, and design resources.
You can initialize a new shadcn/ui project with the React Aria base by running:
pnpm dlx shadcn@latest init --base aria
Then add components through the usual CLI workflow:
pnpm dlx shadcn@latest add button
The CLI installs the React Aria implementation, required dependencies, and styles for the selected component. You can also select React Aria when configuring a project through shadcn/create.
This approach is useful when you want React Aria’s behavior with a ready-made shadcn/ui styling foundation. Installing react-aria-components directly is a better fit when you want to design the entire visual layer yourself.
Shadcn templates can also provide visual and structural inspiration when planning the overall shape of a new application.
React Aria vs. Radix UI vs. Base UI
React Aria, Radix UI, and Base UI all provide accessible, headless foundations for React interfaces. The main differences are their APIs, component coverage, state models, and composition patterns.
| Library | Maintainer | Styling | Best fit |
|---|---|---|---|
| React Aria | Adobe | Unstyled | Broad interaction patterns and internationalized components |
| Radix UI | WorkOS | Unstyled | Familiar composable primitives and a mature ecosystem |
| Base UI | MUI | Unstyled | Flexible primitives for custom design systems |
None is universally better. If your application needs complex collections, date and time controls, strong internationalization, or consistent interaction handling across input methods, React Aria is especially compelling. If your team already knows another library’s API or relies on its ecosystem, switching may not provide enough benefit to justify the migration.
When should you use React Aria?
React Aria is a strong choice when:
- accessibility is a core product requirement
- you are building a custom design system
- the interface must work across keyboard, mouse, touch, and screen readers
- you need internationalized date, number, or right-to-left behavior
- your application includes complex widgets such as tables, trees, selects, or drag and drop
- you want accessible behavior without a prebuilt visual theme
It may not be the best choice when you want a fully styled component library with a finished visual identity, or when a small project only needs simple native HTML controls.
If you are researching finished screen layouts, Shadcn pages can provide useful references for organizing components into cohesive page-level experiences.
Accessibility still requires design and testing
React Aria removes a large amount of difficult implementation work, but it does not make an application automatically accessible.
You still need to:
- provide meaningful visible labels or accessible names
- maintain sufficient color contrast
- preserve visible focus indicators
- use clear validation and error messages
- provide large enough pointer targets
- respect reduced-motion preferences
- test real workflows with a keyboard and screen reader
Treat React Aria as a reliable accessibility foundation, not as a replacement for accessible design decisions and user testing.
Conclusion
React Aria gives React developers the behavior behind accessible interface components while leaving the visual design open. Its higher-level components are a practical starting point for most applications, and its hooks offer deeper control for custom design systems.
Start with a small component such as a button, learn how data attributes and render props expose interaction state, and then move to composed patterns such as selects, dialogs, and date pickers. You will keep control of the design while avoiding much of the fragile keyboard, focus, and screen reader logic that complex UI components require.
For more detail, explore the official React Aria getting started guide, quality and accessibility guide, and the shadcn/ui React Aria announcement.