Simple Modal
This is a simple react modal package. It is designed to be used with the Simple Swap DAPP
It uses native HTML dialog elements and is styled with TailwindCSS.
Installation
# NPM
npm install --save pushkin-simple-modals-01
# Yarn
yarn add pushkin-simple-modals-01
# PNPM
pnpm add pushkin-simple-modals-01
Usage
import { ModalProvider, ModalTrigger } from 'pushkin-simple-modals-01';
const App = () => {
return (
<ModalProvider>
<ModalTrigger
modalName={'simple-modal'}
trigger={'Open Modal'}
modalContent={<div>Hello World</div>}
modalClassName="md:max-w-lg"
/>
</ModalProvider>
);
};