pushkin-simple-modals-01
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i pushkin-simple-modals-01

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

51.4 kB

Total Files

12

Last publish

Collaborators

  • vijaypushkin