8000 GitHub - lllhys/modal: A react modal component.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lllhys/modal

Repository files navigation

@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 / >
    </>
}

About

A react modal component.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0