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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.