Typeahead with an error validation message.
Typeahead with an error validation message.
Typeahead with custom item rendering using TypeaheadItem for avatars and descriptions.
A typeahead whose results are rendered with TypeaheadItem, adding a secondary description below each label. Use inside renderItem to keep custom results visually consistent.
A share card that copies its invite link with useClipboard: the Copy button reads "Copied" while isCopied is true, a screen reader hears "Link copied", and a second press restarts the reset timer.
A list of names sorted with the compare function from useCollator: accented and lowercase names land where a reader expects, and switching the provider locale to Swedish moves Å and Ö after Z.
A custom five-star rating with one Tab stop calls useKeyboardHint directly: tabbing into it shows a "← → to navigate" hint, the first arrow press dismisses it, and tabbing back in does not show it again.
Plain-text comments where useLinkify turns the URL and the email address into Links, and a custom pattern turns issue references like #123 into tracker links — the patterns option in action. The comment without matches stays plain text.
An article of headings and an Outline built from those headings through useOutlineFromDOM. "Add section" appends a heading, and a new entry that links to it appears in the outline.
The smallest pan example, in two forms side by side: the usePanGesture hook and the createPanGesture factory. The factory takes any element, React or not. Each card names its API, follows a drag from a finger, a mouse or a pen, and springs back, with the same StyleX styles. A starting point for a draggable tile, a swipe or any drag-and-release gesture.
A headless useSpeechRecognition control. It shows whether the browser can listen, the words still being recognized, and each finished phrase from onResult.
The word const painted with the keyword color from useSyntaxTheme, inside the GitHub Light syntax theme.
Read resolved theme token values with useTheme for non-CSS consumers like SVG charts.
The name of the theme around the caller, read with useThemeName. The card is inside a theme named harbor.
A country list of buttons with useListFocus arrow keys and useTypeahead type-to-focus. Typing "can" focuses Canada, pressing "b" again and again cycles through Belgium, Brazil and Bulgaria, and "e" finds Éire with the accent ignored. The hook only reports the match through onMatch, and useListFocus moves focus.
Astryx showcase: VisuallyHidden.
A polite aria-live region announces visual-only state changes to assistive technology.
Stat cards whose trend arrows get screen-reader-only text, so a change like +12% is read as an increase from last month. Use to make terse visual data accessible.
Showing 73–89 of 89