Logo van React Aria

React Aria

Organisatie
NextAdminHQ
react-aria

Build accessible UI components with React Aria Components. Use when developers mention React Aria, react-aria-components, accessible components, or need unstyled accessible primitives. Provides documentation for building custom accessible UI with hooks and components.

Overzicht

UitgeverNextAdminHQ
Repositorynextjs-admin-dashboard
Skillnaamreact-aria
Sterren
596
Forks
260
Meegeleverde bestanden
115
LicentieApache-2.0
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 115 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door NextAdminHQ op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill React Aria in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/NextAdminHQ/nextjs-admin-dashboard/tree/main/.agents/skills/react-aria
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NextAdminHQ/nextjs-admin-dashboard.git /tmp/nextjs-admin-dashboard
mkdir -p .claude/skills
cp -r /tmp/nextjs-admin-dashboard/.agents/skills/react-aria .claude/skills/react-aria
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel React Aria in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt React Aria automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is React Aria niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

React Aria Components

Test utilities

@react-aria/test-utils provides ARIA pattern testers that simulate mouse, keyboard, and touch interactions for components built with React Aria Components.

Installation

bash
npm install @react-aria/test-utils --save-dev

Core pattern

External consumers should import from @react-aria/test-utils.

Initialize a User once per test file. Call createTester to get a tester for a specific ARIA pattern, then call tester methods to simulate interactions.

ts
import {User} from '@react-aria/test-utils';

// Provide whatever method of advancing timers you use in your test, this example assumes Jest with fake timers.
// 'interactionType' specifies what mode of interaction should be simulated by the tester
// 'advanceTimer' is used by the tester to advance the timers in the tests for specific interactions (e.g. long press)
let testUtilUser = new User({interactionType: 'mouse', advanceTimer: jest.advanceTimersByTime});

it('my test case', async function () {
  // Render your test component/app
  let {getByTestId} = render();
  // Initialize the table tester via providing the 'Table' pattern name and the root element of said table
  let tableTester = testUtilUser.createTester('Table', {root: getByTestId('test_table')});
  expect(tableTester.getSelectedRows()).toHaveLength(0);

  await tableTester.toggleSelectAll();
  expect(tableTester.getSelectedRows()).toHaveLength(10);
  ...
});

Set interactionType to 'mouse', 'keyboard', or 'touch'. Override per tester via createTester(..., {interactionType}) or per method call.

When using fake timers, pass advanceTimer: jest.advanceTimersByTime and flush timers after each test:

ts
afterEach(() => {
  act(() => jest.runAllTimers());
});

Tips and Tricks

  • The testers typically offers these things: a way to simulate common user interactions for the given component via a specified user modality (e.g. using mouse vs keyboard to toggle a menu), a way to get the various common elements that make up the component (e.g. the rows in a table), and a way to query the state of the component (e.g. get the selected rows in a table). Prefer using the testers for these use cases so that the user doesn't need to know what specific roles/elements/etc to target in their tests.
  • You can still simulate interactions manually in your test alongside the utilities provided by the tester. This can come in handy if you find that the tester doesn't cover a specific user flow or if one of its utilities isn't quite working as expected. After simulating your interaction, you can still use the tester to query for the component's state or trigger a different interaction utility.
  • Mouse drag interactions, simulated scrolling, and other mock reliant interactions are not available in these test utils since they depend heavily on how the user mocks things like clientHeight/Width/etc in their tests. These interactions need to be simulated manually by the user.
  • Some testers may support the notion of "long press" for certain interactions (e.g. long pressing a button to trigger its menu). To simulate this, you will need mock PointerEvent globally (see the installPointerEvent util) and provide a way to advance timers to the User via advanceTimer.
  • These test utils are compatible with not only JSDOM unit tests but browser tests as well (e.g. vitest-browser-react).
  • Methods that accept a target (option, row, column, checkbox, radio, tab) take a number (index), string (text content), or HTMLElement. Use the tester's own query methods (e.g. getRows(), getOptions()) to obtain an HTMLElement when you need one.
  • Link navigation assertions must be simulated manually. The testers do not assert navigation side effects.

When not to use the testers

Skip the testers and write manual interactions for the following cases:

  • When testing a Menu or Dialog rendered without a trigger, or when testing interactive elements embedded inside rows or cells (e.g. an ActionMenu inside a TreeView row). The testers assume a trigger exists and do not reach into row/cell content.
  • tests that verify exact focus order, arrow key cycling, or specific modifier key behavior. Use fireEvent.keyDown or userEvent.keyboard directly so the test is actually testing the desired keyboard flow.
  • when isOpen or defaultOpen is set, open() will no-op but the tester's root must still resolve to the trigger element. Use getByLabelText or getByTestId rather than getByRole('button') to avoid ambiguity when multiple buttons are in the DOM.
  • testing isDismissible, isKeyboardDismissDisabled, or outside-click behavior. Use userEvent.click(document.body) or user.keyboard('[Escape]') directly and assert the expected state afterwards.
  • when a Dialog closes via an action button (not the explicit close/dismiss button) you should instead click that button manually, then use dialogTester.getDialog() to assert whether the dialog is still present.

Draggable handle components

Components with draggable handles (Slider, ColorArea, ColorSlider, ColorWheel) need getBoundingClientRect mocked so move calculations work:

ts
import {installMouseEvent} from '@react-aria/test-utils';
installMouseEvent();

beforeAll(() => {
  jest.spyOn(window.HTMLElement.prototype, 'getBoundingClientRect').mockImplementation(
    () => ({top: 0, left: 0, width: 100, height: 10, bottom: 10, right: 100})
  );
});

Available testers

Pattern nameComponentKey methods
'CheckboxGroup'CheckboxGroupgetCheckboxGroup(), getCheckboxes(), getSelectedCheckboxes(), toggleCheckbox({checkbox})
'ComboBox'ComboBoxgetCombobox(), getListbox(), getOptions(), open(), toggleOptionSelection({option})
'Dialog'Modal, PopovergetTrigger(), getDialog(), open(), close() — pass overlayType: 'modal' or 'popover' to createTester
'GridList'GridListgetGridlist(), getRows(), getSelectedRows(), toggleRowSelection({row}), triggerRowAction({row})
'ListBox'ListBoxgetListbox(), getOptions(), getSelectedOptions(), toggleOptionSelection({option}), triggerOptionAction({option})
'Menu'MenugetTrigger(), getMenu(), getOptions(), open(), toggleOptionSelection({option}), openSubmenu({submenuTrigger}), close()
'RadioGroup'RadioGroupgetRadioGroup(), getRadios(), getSelectedRadio(), triggerRadio({radio})
'Select'SelectgetTrigger(), getListbox(), getOptions(), toggleOptionSelection({option})
'Table'TablegetTable(), getRows(), getFooterRows(), getColumns(), getSelectedRows(), toggleRowSelection({row}), toggleSort({column}), triggerRowAction({row})
'Tabs'TabsgetTablist(), getTabs(), getTabpanels(), getSelectedTab(), triggerTab({tab})
'Tree'TreegetTree(), getRows(), getSelectedRows(), toggleRowSelection({row}), toggleRowExpansion({row}), triggerRowAction({row})

Per-component reference

Documentation Structure

The references/ directory contains detailed documentation organized as follows:

Guides

Components

Component documentation is in references/components/ — one Markdown file per component (e.g. references/components/Button.md). Read the file for a component when you need its API, props, examples, or accessibility notes.

Available components: Autocomplete, Breadcrumbs, Button, Calendar, Checkbox, CheckboxGroup, ColorArea, ColorField, ColorPicker, ColorSlider, ColorSwatch, ColorSwatchPicker, ColorWheel, ComboBox, DateField, DatePicker, DateRangePicker, Disclosure, DisclosureGroup, DropZone, FileTrigger, Form, GridList, Group, Link, ListBox, Menu, Meter, Modal, NumberField, Popover, ProgressBar, RadioGroup, RangeCalendar, SearchField, Select, Separator, Slider, Switch, Table, Tabs, TagGroup, TextField, TimeField, Toast, ToggleButton, ToggleButtonGroup, Toolbar, Tooltip, Tree, Virtualizer.

Interactions

  • FocusRing: A utility component that applies a CSS class when an element has keyboard focus.
  • FocusScope: A FocusScope manages focus for its descendants. It supports containing focus inside
  • useClipboard: Handles clipboard interactions for a focusable element. Supports items of multiple
  • useDrag: Handles drag interactions for an element, with support for traditional mouse and touch
  • useDrop: Handles drop interactions for an element, with support for traditional mouse and touch
  • useFocus: Handles focus events for the immediate target.
  • useFocusRing: Determines whether a focus ring should be shown to indicate keyboard focus.
  • useFocusVisible: Manages focus visible state for the page, and subscribes individual components for updates.
  • useFocusWithin: Handles focus events for the target and its descendants.
  • useHover: Handles pointer hover interactions for an element. Normalizes behavior
  • useKeyboard: Handles keyboard interactions for a focusable element.
  • useLandmark: Provides landmark navigation in an application. Call this with a role and label to register a
  • useLongPress: Handles long press interactions across mouse and touch devices. Supports a customizable time
  • useMove: Handles move interactions across mouse, touch, and keyboard, including dragging with
  • usePress: Handles press interactions across mouse, touch, keyboard, and screen readers.

Utilities

  • I18nProvider: Provides the locale for the application to all child components.
  • mergeProps: Merges multiple props objects together. Event handlers are chained,
  • PortalProvider: Sets the portal container for all overlay elements rendered by its children.
  • SSRProvider: When using SSR with React Aria in React 16 or 17, applications must be wrapped in an SSRProvider.
  • useCollator: Provides localized string collation for the current locale. Automatically updates when the locale
  • useDateFormatter: Provides localized date formatting for the current locale. Automatically updates when the locale
  • useField: Provides the accessibility implementation for input fields. Fields accept user input, gain
  • useFilter: Provides localized string search functionality that is useful for filtering or matching items in
  • useId: If a default is not provided, generate an id.
  • useIsSSR: Returns whether the component is currently being server side rendered or
  • useLabel: Provides the accessibility implementation for labels and their associated elements.
  • useLocale: Returns the current locale and layout direction.
  • useNumberFormatter: Provides localized number formatting for the current locale. Automatically updates when the
  • useObjectRef: Offers an object ref for a given callback ref or an object ref. Especially
  • VisuallyHidden: VisuallyHidden hides its children visually, while keeping content visible

Internationalization

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

en nog 55 bestanden.

Veelgestelde vragen

Wat doet de AI-skill React Aria?

Build accessible UI components with React Aria Components. Use when developers mention React Aria, react-aria-components, accessible components, or need unstyled accessible primitives. Provides documentation for building custom accessible UI with hooks and components.

Waarom React Aria gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. React Aria bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik React Aria in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/NextAdminHQ/nextjs-admin-dashboard/tree/main/.agents/skills/react-aria. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen React Aria gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met React Aria gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je React Aria ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill React Aria gratis?

Ja. Deze skill is door NextAdminHQ op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇