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

@jludev/component-lib-typescript

v1.1.0

Published

A React Component Library With TypeScript

Readme

@jludev/component-lib-typescript

A React Component Library With TypeScript

NPM JavaScript Style Guide

Install

npm install --save @jludev/component-lib-typescript

Documentation

This library is created using styled-components so you will need to pull in styled-components as a dependency to use this library.

Review Styled-Components Docs(https://styled-components.com/)

How to pull in off of npm

npm install --save styled-components

Example of how simple it is to implement a component from this library.

import React, { Component } from 'react'
import MyComponent from '@jludev/component-lib-typescript'

const Example => () {

    return(
      <div>
        <MyComponent />
      <div>
    );

}

Avaiable Components

Here is a list of avaible componets included in the package.

Basic Elements

Form Elements

Buttons:

  • PrimaryButton
  • SecondaryButton
  • TiriaryButton

Inputs:

  • Input (Props it takes are {label, type, value, event})

Select:

  • Dropdown //Props{label, options[], event(This goes to an onChange & onBlur event)}

Utility Styles

I have used these utility styles to help with quickly building style components. Here they are if you would like to use them.

example of using utility styles:

import UtilityStyles from '@jludev/component-lib-typescript'

const FormContainer = styled(FormDiv)`
  background-color: '#fff';
  padding: 1.25rem;
  border-radius: ${UtilityStyles.borderRadius.md};
  box-shadow: ${UtilityStyles.boxShadow.xxl};

  @media ${screenSize.md} {
    padding: 0.5rem;
  }
`

Border Radius

UtilityStyles.borderRadius.

Key: Value: none: '0',

sm: '0.125rem',

base: '0.25rem',

md: '0.375rem',

lg: '0.5rem',

full: '9999px'

Box Shadow

UtilityStyles.boxShadow.

  Key:   Value:
  sm: ' 0 1px 2px 0 rgba(0, 0, 0, 0.05)',

  base: ' 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',

  md: ' 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',

  lg:' 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',

  xl:'0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',

  xxl: ' 0 25px 50px -12px rgba(0, 0, 0, 0.25)',

  outline: ' 0 0 0 3px rgba(66, 153, 225, 0.5)'

Continer Size

UtilityStyles.screenSize.

Key:  Value:
 sm: '(min-width: 640px)',

 md: '(min-width: 768px)',

 lg: '(min-width: 1024px)',

 xl: '(min-width: 1280px)'

Customize Styles

This library is created using styled-components so the best way to customize each componet to fit your project needs is to pass a theme object to your theme provider.

Example of how to pass your custom theme to your whole app.

import React, { Component } from 'react'
import { ThemeProvider } from 'styled-components'
import MyComponent from '@jludev/component-lib-typescript'

// Your Theme Object
const theme = {
  primaryColor: red;
}

const Example => () {

    return(
      <ThemeProvider theme={theme}>
        <div>
          <MyComponent />
        <div>
      </ThemeProvider>
    );

}

ThemeFile Keys

For now these are the only aspects of components that can be customized.

  const theme = {
  primaryColor: //color
  secondaryColor: //color
  tiriaryColor: //color

  }

License

MIT © Joshua-Lucas