Toolkit with accessible components, styles, and examples for your next web app

Ariakit retweeted
Testing a component with Jest, React Testing Library, and Ariakit Test Utils.

ALT Writing code to test a textarea field with suggestion popups and showing how the UI would respond to that.

11
67
759
Ariakit retweeted
Re-creating the GitHub textarea with Ariakit. Now with emoji ✨

ALT Filling in a textarea field with the help of popups with suggestions when the "at" (users), "hash" (issues), or "colon" (emoji) characters are typed.

3
2
72
Ariakit retweeted
The details ✨

ALT Interacting with a textarea element that opens a combobox popup after typing the @ character. The popup size and position are automatically adapted when scrolling the textarea contents.

2
3
18
Ariakit retweeted
I'm building an accessible GitHub-like textarea using the Ariakit Combobox component.

ALT Writing on a textarea element: "Thanks @daniguardio_la and @itsJonQ for the feedback! cc @sseraphini". When typing the @ character, a combo box popup opens so the username can be chosen.

9
18
235
Ariakit retweeted
I'm integrating Floating UI with Ariakit, and I'm very impressed with the result.

ALT Showing how a menu bar's position and dimensions change based on the screen size.

11
19
261
Ariakit retweeted
Testing the Ariakit Combobox component with groups using NVDA (screen reader for Windows). It announces the group label when you focus on an item inside the group. 🔈 Sound on
1
2
17
Ariakit retweeted
An accessible toolbar with a custom select component built with Ariakit. ✨

ALT Using a toolbar widget with a custom select widget using mouse and keyboard

1
3
51
Ariakit retweeted
Built a context menu using Ariakit. Code in the thread.

ALT Opening a custom context menu component with a right click.

2
3
84
Ariakit retweeted
The new Select component has finally been shipped with the latest alpha version of Ariakit. - Lower-level components. - Bring your own styles. - Proper semantics and screen reader support. - Automatic focus management. - Keyboard support. And more... 🧵

ALT Showcase of a custom select component in different contexts.

3
20
162
Ariakit retweeted
Custom Select component with groups: <Select /> <SelectPopover> <SelectGroup> <SelectGroupLabel /> <SelectItem /> </SelectGroup> </SelectPopover> a11y details in the thread 🧵
2
2
43
Ariakit retweeted
Created this multi-selectable combo box widget by combining the Ariakit Combobox and Select components. More info in the thread 🧵

ALT Using a multi-selectable combo box widget.

2
3
27
++ for supporting multiple values. We often miss that native select can do multi selection.
The Ariakit Select renders a hidden <select> element that's kept in sync with the custom element. This is so we can support things like native form submission and browser autofill.

ALT Showing a custom select element and a native select element. When the value of one changes, the other is automatically updated.

1
14
One more reason I'm not gonna build my own select
The Ariakit Select renders a hidden <select> element that's kept in sync with the custom element. This is so we can support things like native form submission and browser autofill.

ALT Showing a custom select element and a native select element. When the value of one changes, the other is automatically updated.

2
9
Ariakit retweeted
Custom select component with autofill support.

ALT Interacting with a login form with email and password inputs and a role input as a custom select element. Then using 1password to autofill the values.

2
7
64
Ariakit retweeted
Getting back to work on the Ariakit Select component. Testing now the integration with Form. 🧵

ALT Coding a custom Select component within a Form component with automatic error handling.

2
2
33
Ariakit retweeted
Building a dropdown menu with a search field using Ariakit ✨ There's no specific component for this. We just combine the lower-level Menu and Combobox components. They're flexible enough to work nicely together.

ALT Building a dropdown menu component with a search field using Ariakit components such as Menu, MenuButton, Combobox, and ComboboxItem.

1
9
73
Ariakit retweeted
Fun experiment: I re-created the macOS menu bar using React (and Ariakit components) ✨

ALT Using a menu bar similar to the macOS one in dark mode using the mouse and the keyboard.

3
9
192
Ariakit retweeted
🔴 Annoying sub-menus 🔵 and how to fix them.

ALT Trying to reach a submenu in a dropdown menu and failing because we hover over another menu item. Then we fix it by checking if the mouse is moving toward the submenu.

28
198
1,688
Ariakit retweeted
Building simple higher-level APIs using the Ariakit primitive components: <Menu> <MenuItem /> <Menu> <MenuItem /> <MenuItem /> </Menu> </Menu>

ALT Building a dropdown menu using nested Menu and MenuItem components

1
8
66
Ariakit retweeted
A Hovercard component with keyboard support. It calculates if the cursor moves towards the popover (the green shape at the end of the GIF). Otherwise, the popover is closed. This component is used on sub-menus.

ALT A white screen with the text "Focus on @ariakitjs using the keyboard to see the disclosure button." Then it demonstrates how to show the card with both the mouse and the keyboard.

1
2
78