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

edviron-ui-package

v1.0.9

Published

A tailwind base UI Components powerd by React + Tailwind + Headless UI

Downloads

157

Readme

Edviron UI Components

A tailwind base UI Components powerd by React + Tailwind + Headless UI

Installation

Using npm:

  npm i edviron-ui-packege

Sidebar Component Documentation

The Sidebar component is a customizable sidebar menu designed for applications that need a navigational structure on the left-hand side of the screen. This documentation will guide you on how to use and customize the Sidebar component in your application.

Table of Contents

  1. Introduction
  2. Props
  3. Usage
  4. Example

Introduction

The Sidebar component is designed to provide a navigational menu with various options. It contains SidebarItem and NestedSidebarItem components, which represent individual menu items and nested menu items, respectively. The Sidebar component takes a set of properties to customize its behavior and appearance.

Props

| Prop | Type | Description | | ------------ | ---------- | ------------------------------------------------------------------------ | | schoolName | string | The name of the school that will be displayed at the top of the sidebar. | | Link | object | The Link component used for routing within the application. | | menu | boolean | A state variable used to toggle the visibility of the nested menu items. | | setMenu | function | A function to update the menu state variable. |

Usage

  1. Importing the Component: Import the Sidebar, SidebarItem, and NestedSidebarItem components in your file.

    import { Sidebar, SidebarItem, NestedSidebarItem } from "edviron-ui-packege";
  2. Using the Component: Use the Sidebar component in your JSX code and customize it by passing the required props.

    • schoolName: The name of the school that will be displayed at the top of the sidebar.
    • Link: The Link component used for routing within the application.
    • menu: A state variable used to toggle the visibility of the nested menu items.
    • setMenu: A function to update the menu state variable.

    The Sidebar component can have one or more SidebarItem and NestedSidebarItem components as its children.

    • SidebarItem: Represents an individual menu item.

      • icon: The icon to be displayed alongside the menu item. It can be any React component, but typically you will use an icon from a library like react-icons.
      • name: The text to be displayed for the menu item.
      • to: The path to navigate to when the menu item is clicked.
    • NestedSidebarItem: Represents a menu item with nested items. It takes the same props as SidebarItem in addition to the menu and setMenu props. It can have one or more SidebarItem components as its children.

Example

Below is an example of how to use the Sidebar component:

import React, { useState } from "react";
import { Link } from "react-router-dom";
import { Sidebar, SidebarItem, NestedSidebarItem } from "path_to_component";
import { AiFillHome } from "react-icons/ai";
import { BsCurrencyRupee } from "react-icons/bs";
import { FaSchool } from "react-icons/fa";

function App() {
  const [menu, setMenu] = useState(false);

  return (
    <Sidebar schoolName={"Edviron"} Link={Link} menu={menu} setMenu={setMenu}>
      <SidebarItem icon={icon} name="Dashboard" to="/" />
      <NestedSidebarItem
        icon={icon}
        name="Fee Management"
        Link={Link}
        menu={menu}
        setMenu={setMenu}
      >
        <SidebarItem icon={icon} name="nested menu" to="/ns-1" />
        <SidebarItem icon={icon} name="nested menu 2" to="/ns-2" />
      </NestedSidebarItem>
      <SidebarItem icon={icon} name="school" to="/school" />
    </Sidebar>
  );
}

export default App;