About 701 results
Open links in new tab
  1. GitHub - accessible-ui/using-keyboard: React utilities for adding ...

    A React component that adds a using-keyboard class to its child element when the keyboard was used more recently than the mouse for focusing an element. It removes the class each time a mousedown event fires.

  2. Focus handling and navigation library with React integration ... - GitHub

    Focus Navigation is a collection of libraries used to build UI that can be navigated using directional input, like a gamepad or keyboard, in a more feature-rich way. The word "focus" in this library can be thought of as an expansion upon the existing concept of "selection". Some common uses include: Easier keybinds and callback mappings

  3. Orange-OpenSource/react-keyboard-navigation - GitHub

    Now you can use the 2 HOCs (Higher Order Components) included in react-keyboard-navigation: withFocus to wrap an HTML element (required to use element.focus()) and transform it in a focusable element. withNavigation to wrap a React component or an HTML element and transform it in a container.

  4. How to Design Keyboard Accessibility for Complex React Experiences

    Jun 11, 2021 · We ended up with the following keyboard controls: Left and Right Arrow – Moves focus to an adjacent node in the data structure. Down Arrow – When focus is on a closed node, opens the node, and focus does not move. When focus is …

  5. A React hook for managing focus of elements in a list based on keyboard

    import * as React from 'react'; type FocusIndex = number | null; /** * A React hook for managing focus of elements in a list based on keyboard * arrows (up and down). Great for a11y and UX. * * This hook does not deal with the actual imperative `.focus()` part at all. * It solely calculates the which index in a list which should currently be ...

  6. Keyboard Accessible Tabs with React - DEV Community

    Jan 9, 2021 · React documentation describes them with the following words: Refs provide a way to access DOM nodes or React elements created in the render method. We need to focus on the correct element programmatically when a user presses either one …

  7. React Refocus | Enhance Focus Management and Accessibility in React ...

    Control and manage focus with hooks and components designed for accessibility and usability. Enable seamless keyboard navigation with customizable navigation hooks for a smoother user experience. Ensure your applications are accessible with focus rings, skip links, and focus traps.

  8. Create a List component with keyboard navigation in React

    Sep 26, 2021 · Take advantage of useEffect, useReducer and useKeyPress custom hook to build a keyboard-friendly React component

  9. Display the Focus Outline Only for Keyboard Usage with React Hooks

    May 17, 2020 · This outline is pretty important and common to highlight the current position while navigating with the keyboard. Not everybody uses a mouse and by hiding the outline you exclude those people. A simple solution

  10. How to Design Keyboard Accessibility for Complex React

    Aug 19, 2024 · The key to keyboard accessibility is understanding current focus position at all times then moving step-wise between interactive elements. React provides imperative escape hatches to underlying DOM nodes for directly controlling focus.

  11. Some results have been removed
Refresh