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

Ariakit retweeted
Working on the @ariakitjs docs. Can I use MenuBar for site navigation?
6
2
67
Ariakit retweeted
Getting back to work on the Ariakit site. alt: Navigating through the docs using a breadcrumb UI. Each item in the breadcrumb can be expanded to search and select another section or page.
5
16
310
Ariakit retweeted
I've been working on a component store feature for @ariakitjs that may replace the current state hooks. The goal is to be able to reuse the state logic in different frameworks besides React, but it may also improve performance. Before / After:
3
4
71
Ariakit retweeted
Drafting API ideas for a vanilla JS version of @ariakitjs.
10
1
87
examples
1
2
18
Ariakit retweeted
Improved support for auto-select and inline auto-completion on the @ariakitjs Combobox component:

ALT Using a combobox widget with the keyboard. Typing "a" on the input automatically opens the listbox popup with the first item ("Apple") selected. The combobox input value changes to "apple", and the completion string "pple" is highlighted. Using arrow keys to move to the following items also changes the input value, but without highlighting.

3
2
28
Ariakit retweeted
I'm trying out this totally unconventional navigation on the @ariakitjs site. Maybe this is a terrible idea. But once you get used to it, the experience is great.

ALT Using a breadcrumb navigation widget with the keyboard. Each section of the breadcrumb is a select widget that can be triggered to change the selected page.

7
4
91
Ariakit retweeted
Work in progress on the @ariakitjs website. This search feature is taking a lot of time, but I really like how it's evolving.
5
6
172
Ariakit retweeted
Improved support for links on @ariakitjs comboboxes. You can open links by pressing Enter (or Cmd/Ctrl+Enter to open in a new tab, or even Alt+Enter to download) even though the focus is on the input.

ALT A screencast showing a combobox widget labeled "Links" with four links as options. Clicking on the links with a mouse or keyboard correctly navigates to the page. When the Command key is pressed, the links open in a new tab.

1
2
34
Ariakit retweeted
Working on the @ariakitjs docs.

ALT A screencast of a documentation page with the title "Animated Dialog". A description says, "Animating a modal Dialog and its backdrop using CSS. The component waits for the transition to finish before completely hiding the dialog." Then, a paragraph follows, "The animated prop on the useDialogState hook must be set to true. Ariakit will assign the data-enter and data-leave attributes and wait for the transition to finish before hiding or unmounting the dialog." Finally, there's a preview of the component.

4
5
69
Ariakit retweeted
Looks like another good example to build using @ariakitjs: - the icon that triggers the popup is Select. - the popup is SelectPopover. - the tabs, Tab. - the filter input, Combobox. - the options, SelectItem + ComboboxItem + PopoverDisclosure, that triggers another Popover.
Happy Wednesday! Your workspace just got a lot more… iconic.
4
3
42
Ariakit retweeted
I just discovered something interesting about @ariakitjs: you can use the browser's built-in search to focus on combobox items.

ALT Using a combobox widget that is responsive to the browser's built-in search.

1
2
45
Ariakit retweeted
Improving transitions between nested and sibling dialogs in @ariakitjs. It's much more reliable now. Ariakit components are unstyled. This is just the logic that keeps dialogs mounted in the DOM until the animation is complete.

ALT A screencast demonstrates a menu button that opens a menu popup with a CSS transition. A menu item triggers a modal dialog with two other buttons that open additional dialogs with animations.

3
5
26
Ariakit retweeted
Most hover cards out there have bad UX. Scrolling the page to read the card contents on Twitter will automatically hide it. On Facebook, hover cards randomly appear as I scroll, hiding the content behind them. Solution: respond only when the user intentionally moves the mouse.

ALT The screencast has a link that shows a card with more details when the mouse moves on it. The card is not triggered when the page is scrolled.

3
3
49
Ariakit retweeted
While @ariakitjs is in alpha, one of the hidden features we are testing is perhaps the most critical feature of the library: "has workaround" Users can fix bugs and implement new features without touching Ariakit's codebase.
6
9
72
Ariakit retweeted
Animating an @ariakitjs Menu with Framer Motion.

ALT Clicking on a menu button with a mouse opens a popup with an animation.

3
1
25
Ariakit retweeted
The sliding menu built with @ariakitjs also works with right-to-left layouts:

ALT Using a multi-level dropdown menu where sub-menus slide to view in a right-to-left layout.

2
2
20
Ariakit retweeted
Built this accessible multi-level sliding menu with @ariakitjs and CSS Scroll Snap. ✨

ALT Using a multi-level sliding menu with mouse, keyboard, and touch.

5
23
291
Ariakit retweeted
This is what working on a component library looks like (testing very extreme usage scenarios):

ALT Alternating between two modal dialogs very fast.

2
3
60