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

react-boomers-iconized-menu

v1.3.0

Published

React Menu Component - Sidebar with icons and multiple panes

Downloads

3

Readme

boomers-iconized-menu

Yo! So, this is an react sidebar menu that uses icons from font-awesome, it has multiple panes and is easy to use and customize.

How it looks like

How to install

Install it via npm:

npm i react-boomers-iconized-menu

Add the desired version of font-awesome to your app:

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.2/css/all.css" integrity="sha384-/rXc/GQVaYpyDdyxK+ecHPVYJSN9bmVFBvjA/9eOB+pb3F2w2N6fc5qB9Ew5yIns" crossorigin="anonymous">

Tadaaaa!

How to use this bad-ass menu

<IconMenu>
  <IconMenuItem 
    icon="fab fa-apple" 
    type={IconMenuItemType.Panel} >
    <div>
      You cool content!
    </div>
  </IconMenuItem>

  <IconMenuItem icon="fab fa-aws" 
    type={IconMenuItemType.Action}
    onClick={() => { console.log('do some custom stuff'); }} />

</IconMenu>

IconMenuItemType's

There's two types of IconMenuItem:

  • IconMenuItemType.Panel: will open a side panel with the content you placed inside IconmenuItem
  • IconMenuItemType.Action: will trigger the action you placed inside onClick

Styling - CSS

You can customize the menu styles (bar size, icons size, colors, etc..) by overwriting css.

Menu bar width

Default is: 60px;

#boomers-menu-icon-area {
  width: 100px;
}

Menu bar color

Default is: rgba(0, 0, 0, 0.5);

#boomers-menu-icon-area {
  background-color: rgba(255, 0, 0, 0.5);
}

Icons color

Default is: white;

#boomers-menu-icon-area ul li {
  color: darkorange;
}

Icon color on hover

Default is: rgba(135, 196, 250, 1);

#boomers-menu-icon-area ul li:hover {
  color: pink;
}

Icons size

Default is: font-size: 35px;

#boomers-menu-icon-area ul li {
  font-size: 100px;
}

Your menu content area

You can customize your menu content area by inline styling, e.g.:

<IconMenuItem icon="fab fa-apple">
  <div style={{ backgroundColor: 'rgba(0, 0, 0, 0.5); width: 300px; ' }}>
    Super dope menu
  </div>
</IconMenuItem>

Help

If you need help: open a new issue

License

MIT