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

@minna-ui/dialog

v0.22.0-next.20

Published

😸 A fast, friendly, and fun web UI kit for everyone.

Downloads

9

Readme

NPM version NPM bundle size (minified + gzip) Licence

@minna-ui/dialog

TODO: Write me.

TODO: Write note about @minna-ui/css interplay/dependency.

TODO: Example image.

TODO: Add link to demo and documentation page.

Usage

Standalone

The easiest way to use the component is to add the CDN hosted version directly in your HTML.

TIP: If you're already using a JavaScript bundler you should follow the the "Other JavaScript projects" instructions.

  1. Add the CSS and JS to your document, inside the <head></head>:

     <link href="https://cdn.jsdelivr.net/npm/@minna-ui/dialog/dist/index.css" rel="stylesheet"/>
    
     <script src="https://cdn.jsdelivr.net/npm/@minna-ui/dialog"></script>

    Or use a specific version:

    <link
      href="https://cdn.jsdelivr.net/npm/@minna-ui/[email protected]/dist/index.css"
      rel="stylesheet"
    />
    
    <script src="https://cdn.jsdelivr.net/npm/@minna-ui/[email protected]"></script>
  2. Add an element where you want the component to show in your document <body></body>:

    <div id="minna-dialog"></div>
  3. Initialise the component:

    <script>
      new MinnaDialog({
        target: document.querySelector('#minna-dialog'),
        data: {},
      });
    </script>

Svelte projects

Because this is actually a Svelte component, using it in your Svelte projects is simple and allows for the most flexibility and best possible performance.

  1. Install the package:

    yarn add @minna-ui/dialog
  2. Add to your Svelte component:

    MySvelteComponent.svelte:

    <MinnaDialog />
    
    <script>
      import MinnaDialog from '@minna-ui/dialog';
    
      export default {
        components: {
          MinnaDialog,
        },
      };
    </script>

Other JavaScript projects

This component can also be used alongside any JavaScript project, regardless of your framework of choice, by using ES6 modules import.

  1. Install the package:

    yarn add @minna-ui/dialog
  2. Add to your files:

    my-example.html:

    <div id="minna-dialog"></div>

    my-example.js:

    import MinnaDialog from '@minna-ui/dialog';
    
    new MinnaDialog({
      data: {},
      target: document.querySelector('#minna-dialog'),
    });

Licence

@minna-ui/dialog is part of Minna UI, an Apache-2.0 licensed open source project. See LICENCE.


© 2019 We Are Genki