npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@zddi/modal

v1.1.10

Published

React UI Modal

Downloads

7

Readme

React Modal

React based dialog box components, automatic center, adaptive size, support before and after open callback methods

Install

yarn add @zddi/modal

Usage Modal

import Modal from "@zddi/modal";
import "@zddi/modal/modal.css";

API

| Property | Type | Default | Description | | -------------------- | ---------- | ------- | ------------------------------------------------------------- | | open | Boolean | false | Whether to open the dialog box | | close | Function | - | Close the triggered callback function | | loading | Boolean | true | Whether to display loading | | children | React Node | - | Used to confine a dialog box content area | | footer | React Node | - | Used at the bottom of the configuration dialog | | showMask | Boolean | true | Show the mask layer | | closeOnEsc | Boolean | true | Whether support press esc to close | | closeOnDocumentClick | Boolean | false | Support for clickable document closure | | showHeader | Boolean | true | Whether to display the title or not | | dragHeader | Boolean | true | Whether dragging is supported | | beforeOpen | Function | - | The callback function that fires before the dialog box opens | | beforeClose | Function | - | The callback function that fires before the dialog box closes | | isForm | Boolean | false | The outer layer is wrapped with the form tag | | FormProps | Object | { } | Attribute of the form tag |

版本历史

1.1.10

2024 年 1 月 26 日 星期五 10 时 04 分 31 秒 CST

  • 支持form标签包裹

1.1.8

2023 年 9 月 18 日 星期一 14 时 04 分 11 秒 CST

  • 删除全局变量modalWrapScroll,还原 modal 内容的最大高度,增加全局变量modalDynamicMaxHeight 控制 modal 最大高度是否动态获取浏览器高度

1.1.7

2023 年 9 月 14 日 星期四 10 时 04 分 37 秒 CST

  • wrapScroll 参数替换为全局变量__modalWrapScroll 控制

1.1.6

2023 年 9 月 5 日 星期二 10 时 27 分 04 秒 UTC

  • 新增 wrapScroll 参数,调整 z-index