Skip to content
focus-trap-react

Open source alternatives to focus-trap-react

200 open source apps like focus-trap-react, closest match first.

Top picks

  1. R

    react-toastify

    Launch

    React-Toastify is a React library for adding notifications, called toasts, to an app. It is meant for developers who want to show short messages to users without building their own notification system. The README says it is easy to set up,

    Open source

  2. Y

    yet-another-react-lightbox

    Launch

    Yet Another React Lightbox is a modern React lightbox component that aims to be performant, easy to use, customizable and extendable. It works with React 19, 18, 17 and 16.8.0 or later, comes with built-in TypeScript types, and is compatibl

    Open source

  3. R

    react-swipeable-views

    Launch

    react-swipeable-views is a React component that makes swipeable views, such as image carousels and tabbed content you can swipe between. The project includes a few packages: the main react-swipeable-views component, react-swipeable-views-ut

    Open source

  4. R

    react-joyride

    Launch

    React Joyride is an MIT-licensed library for building guided tours and walkthroughs in React apps. You show users around the interface or explain a new feature by setting a list of steps, and the library draws the highlights and tooltips fo

    Open source

  5. K

    kbar

    Launch

    kbar is a React component library that adds a command palette, the cmd+k (or ctrl+k) search menu, to a website or web app. Developers wrap their app in a single provider, define actions, and render the provided UI components, or build their

  6. R

    reoverlay

    Launch

    Reoverlay is a small, typed modal manager for React. You mount one ModalContainer near the root of your app, then open, stack and close modals from anywhere with an imperative API. Reoverlay.showModal takes a modal as a configured name, a R

More like focus-trap-react

7
R

@restart/ui

Utilities for creating robust overlay components

Launch
8
R

react-pro-sidebar

high level and customizable side navigation

Launch
9
R

react-text-truncate

Truncate text for React.js

Launch
10
R

React Page Visibility

Declarative, nested, stateful, isomorphic page visibility React component

Launch
11
T

@TanStack/hotkeys

Type-Safe keyboard shortcuts library with awesome devtools

Launch
12
R

react-dropdown

A lightweight, accessible dropdown component for React

Launch
13
R

react-simple-image-viewer

Simple image viewer component for React

Launch
14
R

react-resizable-and-movable

Resizable and movable component for React

Launch
15
R

react-custom-scrollbars-4

React scrollbars component

Launch
16
R

React Native Modal

An enhanced, animated, customizable Modal for React Native

Launch
17
M

maskito

Collection of libraries to create an input mask which ensures

Launch
18
R

react-complex-tree

Unopinionated Accessible Tree Component with Multi-Select and Drag-And-Drop

Launch
19
K

@kouts/vue-modal

A customizable, stackable and lightweight modal component

Launch
20
M

Mantine

A fully featured React components library

Launch
21
S

sweetalert2-react-content

Official SweetAlert2 enhancer adding support for React elements as content

Launch
22
R

react-contextmenu

Context Menu implemented in React

Launch
23
R

react-responsive-carousel

React.js Responsive Carousel (with Swipe)

Launch
24
R

react-cropper

Cropper as React Component

Launch
25
R

react-scrollchor

A React component for scrolling to #hash links with smooth animations

Launch
26
R

react-data-grid

Feature-rich and customizable data grid React component

Launch
27
R

react-markdown

React component to render markdown

Launch
28
R

ReactGrid

Add spreadsheet-like behavior to your React app

Launch
29
R

react-input-range

React component for inputting numeric values within a range

Launch
30
R

react-vtree

React component for efficiently rendering large tree structures

Launch
31
R

react-quilljs

React Hook Wrapper for Quill, powerful rich text editor

Launch
32
R

react-notifications-component

React component for creating notifications on the fly

Launch
33
R

react-map-gl

A React wrapper for MapboxGL-js and overlay API

Launch
34
J

jpmarques

A radial pie menu for React

Launch
35
U

uncontrollable

Wrap a controlled react component

Launch
36
E

@egjs/react-flicking

Everyday 30 million people experience

Launch
37
B

@brainhubeu/react-carousel

Carousel component for React

Launch
38
R

react-tooltip

React tooltip component

Launch
39
R

react-sticky

Sticky component for React

Launch
40
R

react-player

A React component for playing a variety of URLs, including file paths, Mux

Launch
41
R

react-notification-system

A React Notification System fully customized

Launch
42
R

rc-new-window

popup new browser window with react

Launch
43
R

react-arborist

The complete tree view component for React

Launch
44
R

react-pdf-highlighter

Set of React components for PDF annotation

Launch
45
D

date-range-picker

Flexible React date range picker calendar with no dependencies

Launch
46
R

react-mobile-picker

An iOS like select box component for React

Launch
47
S

@sooro-io/react-gtm-module

React Google Tag Manager Module

Launch
48
E

@egjs/react-infinitegrid

A module used to arrange card elements including content infinitely on a grid

Launch
49
R

react-intense

A React component for viewing large images up close

Launch
50
R

react-body-classname

A declarative, nested way to manipulate your body's className

Launch

About focus-trap-react

F

focus-trap-react

A React component that traps focus

focus-trap-react is a React component that traps keyboard focus inside one of its children, which is useful for an accessible modal. It is a thin wrapper around the focus-trap library and adds React-specific handling. The trap activates automatically when the component mounts, unless you change that, and it deactivates when the component unmounts. Props can activate, deactivate, pause and unpause the trap. The component expects exactly one child element, which can be an HTML element or another component that contains focusable elements, and it cannot be a Fragment, because it needs a reference to the underlying DOM element. The README requires React 18.0.0 or later. It notes that the library no longer sets propTypes or defaultProps, since React 19 removed them, and it suggests TypeScript or a runtime validation library instead. Support is aimed at desktop browsers in current versions of Chrome, Edge, Firefox, Safari and Opera, and Internet Explorer is no longer supported. It suits React developers building dialogs, drawers and other overlays that must keep keyboard users inside them.

Price
Free
Made by
davidtheclark
Category
UI Libraries
Website
github.com/focus-trap/focus-trap-react