React
ReactPosts

Flexible React ST Modal Dialog Component


SIMPLE AND POWERFUL MODAL DIALOG COMPONENT FOR REACT

React St Modal Dialog is a simple and flexible library for implementing modal dialogs.

Features

  • Simple and easy to use api
  • Compatible with mobile devices
  • Implemented standard interaction functions: alert, confirm, prompt
  • Async/await syntax
  • Customization via css variables
  • Accessibility and focus control
  • Dynamic call of modal dialogs, which does not require definition in code
  • No third party libraries
Installation

NPMnpm install react-st-modal

YARNyarn add react-st-modal

Example:
import { Confirm } from 'react-st-modal';

// ...
const onClick = async () => {
  const isConfirm = await Confirm(
    'You cannot undo this action',
    'Are you sure you want to delete the entry?'
  );

  if (isConfirm) {
    deleteRow();
  }
};
// ...

You can Checkout Complete Documentation, for Props & Other Modal,


Share this page on:

Was this page helpful ?

Let us know how we did!

Subscribe Email Updates

to get latest update