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

@nvus/nvus-react

v0.2.3

Published

<h1 align="center">Welcome to @nvus/nvus-react 👋</h1> <p> <img alt="Version" src="https://img.shields.io/badge/version- 0.1.0-blue.svg?cacheSeconds=2592000" /> <a href="https://www.gnu.org/licenses/gpl-3.0.txt" target="_blank"> <img alt="License:

Downloads

1

Readme

React Component that scaffolds out a basic dashboard layout in a windowed environment.

The NVUS-React MenuModel

The NVUS-React component takes in a single property: An array of NVUS Menu Models.

Each Menu Model is consists of a title and an array of MenuItems.

Each MenuItem consists of:

  1. title: String The Name of the Component
  2. icon: A ReactNode representing the icon to use alongside the title
  3. child: A ReactNode child that represented the component to render in the body of the window.
  4. optionalParams: An object that represents optional window properties to override.
    1. minW?: The minimum width of the window
    2. minH?: The minimum height of the window
    3. width?: The width of the window at open
    4. height?: The height of the window at open

If a single Menu Model object is passed in the array, NVUS-React will not render the paging arrows in the menu bar.

It is the goal of this developer to make this model as open as possible yet there are some items (ex: the icon) where it is preferred to limit the type. However the current scope of the project is to produce a minimum viable solution as to solicit feedback and critique from the public at large.

Install

1. Install from NPM/Yarn

yarn add @nvus/nvus-react

2. Create local typings file and place in directory 'typings'

declare module '@nvus/nvus-react';

3. Import typings file into tsconfig.json

{
  "compilerOptions": {
    ...
    "typeRoots": [
      "./node_modules/@types/",
      "./typings"
    ]
  },

Steps 2 and 3 are short-term measures until package types are accepted into @types.

Usage

const mainMenu = [
    {
        title: 'Test Title',
        menuItems: [
            {
                label: 'Component A',
                icon: <FontAwesomeIcon icon={faUser} />,
                child: <ComponentA></ComponentA>,
            },
            {
                label: 'Component B',
                icon: <FontAwesomeIcon icon={faMap} />,
                child: <ComponentB></ComponentB>,
            },
        ],
    },
    {
        title: 'Test Title Too',
        menuItems: [
            {
                label: 'Component C',
                icon: <img src="./logo192.png" alt="" />,
                child: <ComponentC></ComponentC>,
            },
            {
                label: 'Component D',
                icon: <FontAwesomeIcon icon={faPlus} />,
                child: <ComponentD></ComponentD>,
            },
        ],
    },
]

return (
    <div>
        <NvusReact items={mainMenu} />
    </div>
)

Run tests

yarn run test

SASS Variables

See _theme.scss for a comprehensive list of all the SASS variables used in theming and laying out the components.

Author

👤 Michael Finegan, Jr.

Show your support

Give a ⭐️ if this project helped you!

Tips are appreciated!

BTC: 3KC3rPky6hnkYppKyBJdDFNf2mpDQt7ogq

ETH: 0x5aac680931344A6c588D0624DE1D44987E9330C7

BCH: qzex8w53qmtq5zvxayfm0nmmxprgt4muzc5v8q4cwf

DOGE: DPmNfDWrUeGEUGZAqLSrJ2AozhGQtZXDJZ

SHIB: 0x5a0F9E9F8355CEdBfFEc374Ea86ad5dB9Be594a7

📝 License

This project is GPL v3.0 licensed.


This README was generated with ❤️ by readme-md-generator