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

tandina-modal-content

v1.0.7

Published

a react component that accept a function to display the modal, to close it and to add a custom message

Downloads

13

Readme

tandina-modal-content

This project contain the code of a modal you can customize and test on storybook but to use it on your project you need to install it on your project with this command

npm i tandina-modal-content

https://www.npmjs.com/package/tandina-modal-content


DevDepedencies


"@babel/preset-env": "^7.22.2", "@babel/preset-react": "^7.22.3", "@rollup/plugin-node-resolve": "^15.0.2", "@storybook/addon-essentials": "^7.0.18", "@storybook/addon-interactions": "^7.0.18", "@storybook/addon-links": "^7.0.18", "@storybook/blocks": "^7.0.18", "@storybook/react": "^7.0.18", "@storybook/react-webpack5": "^7.0.18", "@storybook/testing-library": "^0.0.14-next.2", "prop-types": "^15.8.1", "rollup": "^2.79.1", "rollup-plugin-babel": "^4.4.0", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-terser": "^7.0.2", "storybook": "^7.0.18"

Available Scripts

"test": "echo "Error: no test specified" && exit 1", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "build-lib": "rollup -c"

npm build-storybook

to create a storybook, it's will create a react project environement and automaticly start to display this projet at this adress http://localhost:6006 and allow you to test the component

npm build-lib

will minify the project in two file, one for all browsers and on es file ecma file for old browsers both version are available when you install with npm


without npm


you can also clone this project, test it with storybook before you use it


the modal content


there is two components in the project "requirements" and "ModalContent" requirements is a template of an react project, requirement equal to the parent component of "ModalContent" it's show you how to set modal content. ModalContent is your component that allow you to display a message, to close the modal and set his visibility. in requirement you need to pass with pros functions to controll the modal