All Projects → Meemaw → react-micro-modal

Meemaw / react-micro-modal

Licence: MIT License
Accessible, lightweight and configurable modal component with a11y-enabled.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-micro-modal

React Modal Video
Accessible React Modal Video Component
Stars: ✭ 105 (+191.67%)
Mutual labels:  accessibility, modal
Lity
Lightweight, accessible and responsive lightbox.
Stars: ✭ 1,051 (+2819.44%)
Mutual labels:  accessibility, modal
Launchy
Launchy: An Accessible Modal Window
Stars: ✭ 89 (+147.22%)
Mutual labels:  accessibility, modal
A11y Dialog
A very lightweight and flexible accessible modal dialog script.
Stars: ✭ 1,768 (+4811.11%)
Mutual labels:  accessibility, modal
Micromodal
⭕ Tiny javascript library for creating accessible modal dialogs
Stars: ✭ 3,008 (+8255.56%)
Mutual labels:  accessibility, modal
jquery-accessible-modal-window-aria
jQuery simple and accessible modal window, using ARIA
Stars: ✭ 61 (+69.44%)
Mutual labels:  accessibility, modal
svelte-accessible-dialog
An accessible dialog component for Svelte apps
Stars: ✭ 24 (-33.33%)
Mutual labels:  accessibility, modal
react-gallery-carousel
Mobile-friendly gallery carousel 🎠 with server side rendering, lazy loading, fullscreen, thumbnails, touch, mouse emulation, RTL, keyboard navigation and customisations.
Stars: ✭ 178 (+394.44%)
Mutual labels:  accessibility, modal
granblue-automation-android
Educational application written in Kotlin aimed at automating user-defined workflows for the mobile game, "Granblue Fantasy", using MediaProjection, AccessibilityService, and OpenCV.
Stars: ✭ 26 (-27.78%)
Mutual labels:  accessibility
SBCardPopup
Card Popup UI for iOS
Stars: ✭ 66 (+83.33%)
Mutual labels:  modal
bookworm
The Universally Accessible document Reader
Stars: ✭ 50 (+38.89%)
Mutual labels:  accessibility
portfolio
A virtual investing portfolio app (aka Kytra)
Stars: ✭ 32 (-11.11%)
Mutual labels:  micro
dev-gateway
Local development cluster with "now" path aliases syntax support. Allows running multiple microservices as one solid server.
Stars: ✭ 32 (-11.11%)
Mutual labels:  micro
AccessSniff
Automated accessibility testing using HTML_Codesniffer (WCAG and Section508)
Stars: ✭ 84 (+133.33%)
Mutual labels:  accessibility
D2PCurvedModal
An elegant and curved modal View for iOS (Swift)
Stars: ✭ 59 (+63.89%)
Mutual labels:  modal
protoc-gen-micro
Protobuf code generation
Stars: ✭ 287 (+697.22%)
Mutual labels:  micro
DomainAccessibilityAudit
Web application to create domain and subdomain accessibility audits, with violation statistics.
Stars: ✭ 41 (+13.89%)
Mutual labels:  accessibility
chaarts
Charts with HTML & CSS
Stars: ✭ 79 (+119.44%)
Mutual labels:  accessibility
backend
Backend powering the M3O platform
Stars: ✭ 64 (+77.78%)
Mutual labels:  micro
react-native-awesome-alert
🔔 Customizable modal components with ✔️check options in React Native
Stars: ✭ 50 (+38.89%)
Mutual labels:  modal

react-micro-modal

npm CI codecov code style: prettier

Accessible, lightweight and configurable modal component with a11y-enabled inspired by Micromodal.js.

Release notes | Documentation


  • NPM: npm install react-micro-modal
  • Yarn: yarn add react-micro-modal

Features

  • Micro bundle - 1.9 KB 📦
  • a11y friendly 👓
  • Supports nested modals
  • Focuses on the first focusable element within the modal
  • Traps focus inside the modal
  • Closes on document click
  • Closes on Escape keypress
  • Usage as controlled or uncontrolled component

Example

Here is a minimal uncontrolled modal example in 3 lines of code.

import React from 'react';
import { render } from 'react-dom';
import MicroModal from 'react-micro-modal';

const App = () => {
  return (
    <MicroModal trigger={(open) => <div onClick={open}>Open!</div>}>
      {(close) => <button onClick={close}>Close!</button>}
    </MicroModal>
  );
};

render(<App />, document.getElementById('root'));

Live Playground

For more examples of micro-modal in action, go to https://meemaw.github.io/react-micro-modal.

OR

To run that demo on your own computer:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].