Crystallize
React Dialog

React Dialog

React component to display accessible dialogs.

Read how to get started with accessible React dialogs.

NPM logoReact Dialog

Usage

yarn add @crystallize/react-dialog

In your app root

import { Wrapper } from '@crystallize/react-dialog';export default () => ( <main> <YourApp /> </main> <Wrapper />);

Use it

import { showDialog, showAlert, showConfirm, closeCurrent } from '@crystallize/react-dialog';await showDialog('Hey dude');await showAlert('Wow');await showConfirm('Are you sure?');closeCurrent();