Загрузка видео...

Не удалось загрузить видео

На главную

New React Aria components! 🚀 🔗 PreviewTrigger – build accessible hover popovers 🐭 Context menu trigger for mouse, keyboard, and touch 🪙 TokenField (alpha) – a text input with inline tokens 📋 Editable table cells 🎹 Keyboard shortcuts 🪝 New hook docs

25,597 просмотров • 3 месяцев назад •via X (Twitter)

Комментарии: 28

Фото профиля Devon Govett
Devon Govett3 месяцев назад

Check out the release notes here.

Фото профиля Devon Govett
Devon Govett3 месяцев назад

PreviewTrigger opens a popover on hover, focus, or long press. Unlike Tooltip, it may include interactive content. Keyboard users can tab in and out of the popover, and it's accessible across devices. Includes open delay, safe area handling, and coordinated entry and exit animations.

Фото профиля Devon Govett
Devon Govett3 месяцев назад

MenuTrigger adds support for context menus, accessible via right click, OS-specific keyboard shortcuts (e.g. Control + Enter on macOS), and touch long press.

Фото профиля Devon Govett
Devon Govett3 месяцев назад

TokenField is a versatile component for entering text with inline tokens, supporting autocomplete and auto-tokenization. Use it to build AI prompt fields, tag inputs, structured search fields, mention inputs, and multi-select comboboxes. Currently alpha.

Фото профиля Devon Govett
Devon Govett3 месяцев назад

We also completely re-wrote the React Aria and React Stately hook documentation for every component! The new docs use the same styles as our React Aria Components examples, and show how to use components and hooks together when you need more control.

Фото профиля Darkstar
Darkstar3 месяцев назад

Amazing as always! 🥳

Фото профиля Jeff Rosen
Jeff Rosen3 месяцев назад

Thank you

Фото профиля Peter Emad
Peter Emad3 месяцев назад

Amazing work as alawys

Фото профиля Damian Stasik
Damian Stasik3 месяцев назад

Thank you! I also love the new `shouldObserveItemSize` prop on the Virtualizer, as it could help me completely switch away from the other package I've been using for virtualization.

Фото профиля Pav Sidhu
Pav Sidhu3 месяцев назад

You guys are always cooking! TokenField is 🔥🔥

Фото профиля Elias Witt
Elias Witt3 месяцев назад

Gonna get some mileage out of that tokenfield component 👀

Фото профиля Nate Smith
Nate Smith2 месяцев назад

Do you expect to eventually refactor DatePicker to use TokenField? E.g. would be cool to have an autocomplete tokenfield for time zone.

Фото профиля Artur Bień
Artur Bień3 месяцев назад

Awesome stuff 😍

Фото профиля Anton Reshetov
Anton Reshetov3 месяцев назад

A context menu that works for mouse, keyboard and touch is quietly the hardest item on this list. Hand-rolled menus usually die on Shift+F10 or on telling long-press from scroll. Shipping that as a trigger you just attach is years of edge cases compressed into one API.

Фото профиля pxlgrdnr
pxlgrdnr2 месяцев назад

Shipped some UI w/ PreviewTrigger this week. Loving it. Not sure if it's intentional but if a Button inside the Popover is used for a TooltipTrigger/Tooltip, the Popover closes immediately on hover of the Button.

Фото профиля Devon Govett
Devon Govett2 месяцев назад

sounds like a bug. could you file it on GitHub?

Фото профиля pxlgrdnr
pxlgrdnr2 месяцев назад

No problem, submitted

Фото профиля Mikhail Rogov
Mikhail Rogov3 месяцев назад

Context menus across mouse, keyboard, and touch save a lot of easy-to-miss edge case work.

Фото профиля Curtis Flaming
Curtis Flaming3 месяцев назад

Amazing

Фото профиля Culer
Culer3 месяцев назад

Examples on editable cells?

Фото профиля Devon Govett
Devon Govett3 месяцев назад

Basically just that text fields now work as expected in table cells with keyboardNavigationBehavior="tab".

Фото профиля Culer
Culer3 месяцев назад

I never truly understood the purpose of having separate editable cell, we could turn any cell into editable even before this so what is the difference here? Sorry if question is dumb😅

Фото профиля Devon Govett
Devon Govett3 месяцев назад

Before this if you tried to use the arrow keys to move the cursor within the text field it would conflict with navigating between cells in the table. That's now fixed with the new tab mode.

Фото профиля Culer
Culer3 месяцев назад

in the doc's example when I press tab it focuses input field of the cell (which is intended) but when I press tab while input being focused it moves the focus out of the table completely, shouldn't it instead just move focus out of cell into grid navigation?

Фото профиля Devon Govett
Devon Govett3 месяцев назад

The problem with that is you’d end up in a tab loop. Cell -> input -> cell -> input etc. From input you can shift tab back to the cell though.

Фото профиля Culer
Culer3 месяцев назад

yeah tab loop makes sense, but instead of shift + tab could we do ESC or at least configure it, if shift + tab kind of default?

Фото профиля Devon Govett
Devon Govett3 месяцев назад

Yeah I think we were discussing adding escape in a follow up. Need a bit more testing to make sure it doesn’t conflict with anything.

Фото профиля Raja ARK
Raja ARK3 месяцев назад

Can we get all the components which @ark_ui_ have?

Похожие видео