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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mint-au/mint-au-sections

v0.0.16

Published

---

Downloads

24

Readme

mint-au-sections


Description: This can be utilized as an ES6 module and embedded into HTML, JSP, etc.

Usage

Vanilla JS / HTML / JSP

Integrate the following HTML and JavaScript into your web page:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>My Project</title>
    </head>
    <body>

    <div id="mint_hub-lonely"></div> <!-- React will render here -->
    <p>Hello World!</p>
    <div id="mint_hub-mint"></div> <!-- React will render here -->

    <script src="https://unpkg.com/@mint-au/mint-au-sections/index.umd.js" type="module" defer></script>
    <script defer>
        document.addEventListener('DOMContentLoaded', () => {
            window.renderReactMintHubComponents.init({
                show: true,
                components: [
                    { id: 'lonely', component: 'Lonely', props: { message: "Hello from Lonely!" } },
                    { id: 'mint', component: 'MintAuSections', props: { message: "Hello from MintAuSections!" } },
                ]
            });
        });
    </script>
    </body>
</html>

API

Options (object)

| Option | Type | Default | Description | |---------------|----------|----------|--------------------------------------------------------------| | show | boolean| false | Indicates if the components should be displayed. | | components| array | | A list of components from mint-au-sections that can accept various props based on the component type. |

Example Structure for components (object)

| Property | Type | Description | |----------------|-------------|----------------------------------------------------------| | id | string | A unique identifier assigned to each component. | | component | string | The name of the component as defined in the library. | | props | any | Custom properties that can be supplied to the component. | | show | boolean | This is typically set to true by default. |

Adding Elements

To render the components, include the appropriate HTML elements anywhere in your document (HTML, JSP, etc.) using the IDs defined during initialization:

For example:

<div id="lonely"></div>
<div id="mint_hub-mint"></div>

Note: If the prefix mint_hub- is not specified during initialization, it will be automatically added for uniqueness. If an ID is not found in the elements or the corresponding component is not included in the initialization, it will not be rendered on the page.

ES6 (deprecated)

Installation

To install the package, execute the following command:

npm install @mint-au/mint-au-sections

Next, initialize the components with this code:

import { renderReactMintHubComponents } from '@mint-au/mint-au-sections';

renderReactMintHubComponents.init({
    show: true,
    components: [
        { id: 'lonely', component: 'Lonely', props: { message: "Hello! I am a message property that was passed to you!" } },
        { id: 'mint_hub-mint', component: 'MintAuSections', props: { message: "Hello from MintAuSections!" } },
    ]
});