@lllhys/modal
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

@lllhys/modal

A mobile side modal component, to achieve a complete life cycle of the object, built-in commonly used keyframe animation, while providing an event listener callback.

Docs

You can see our docs on https://lllhys.github.io/modal/

Install

yarn add @lllhys/modal
# or
npm install @lllhys/modal

Usage

This is a simple demonstration of how to use Modal, please read the documentation if you want to learn more.Doc

import Modal, {ModalContainer, IModalProps} from '@lllhys/modal';

interface IProps {

}

const ModalFC = (props: IModalProps<IProps>) => {

}

// App.jsx

const App = () => {
  const handleClick = () => {
    const modal = Modal.createModal(ModalFC);
  }
  return <>
    <button onClick = {handleClick} > open < /button>
    < ModalContainer / >
    </>
}

Package Sidebar

Install

npm i @lllhys/modal

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

110 kB

Total Files

32

Last publish

Collaborators

  • lllhys