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

@mirach-gtls/gtls-react-component-library

v1.1.26

Published

___

Readme

React Component Library:


Installation:

npm install @mirach-gtls/gtls-react-component-library

Components:

This library currently has six components:

  • WhiteBox
  • NavBar
  • AppHeader
  • Button
  • MenuButton
  • TableComp

All styles should be implemented using tailwindcss

WhiteBox:

It accepts 2 props:

  • title : String
  • component : JSX element

Code example:

<WhiteBox title="My requests" component={} />

P.S: The whitebox already has some styles imbedded and will take the full width and height of parent component if it's inveloped in one or take the size of the title and component that will be passed as props

WhiteBox

MenuButton:

It accepts 5 props:

  • id : String /// id of the menu button that will be used to navigate between pages
  • activeButtonId: string /// active button id that if it matches will be given a different style
  • onClick: function
  • title: string /// label of the menu button
  • icon: JSX element

Code example:

Svg element in a component <MenuButton id="dashboard" activeButtonId={activeButtonId} onClick={handleClick} title="Dashboard" icon={}/> or Svg element directly: P.S: Svg should not have a class or className and the fill and stroke should be set to "inherit" for the hover or when active effects to be displayed correctly

MenuButton

Button:

It accepts 6 props:

  • name: string
  • icon: JSX element optional
  • className : for CSS styling
  • disabled: boolean optional
  • onClick function
  • hoverBg: string optional if you choose to include it in className

Code example:

Button

AppHeader:

It accepts 2 props:

  • NotificationBell: JSX element optional
  • changeState: function /// prop passed from parent

Code example:

<AppHeader NotificationBell={} changeState={changeState}/>

AppHeader

NavBar:

It accepts 6 props:

  • pp: JSX element of the picture of the employee
  • name: string /// name of the employee
  • logo: ReactNode; JSX element
  • logout function
  • buttons: Button[]; /// array of buttons (different component than the button that is previously mentioned) that will be rendered
  • logoutIcon: JSX element /// icon that can be a string or a jsx element

Code example:

P.S: buttons should be in the following format:

NavBar

TableComp:

It accepts 3 props:

  • headers: HeaderData[];
  • body: JSON Data;
  • fieldStyles : JSON

Code example:

P.S: headers should abid the following structure:

P.SS: fieldStyles should abid the following structure:

You can specify the style that you want in each header A method is implemented that will transform the json data into the following to render the table data correctly

Each object represents a element and the cells represent the inside of it

TableComp