0.0.1 • Published 11 months ago

pushkin-simple-modals-01 v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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>
  );
};
0.0.1

11 months ago