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-ui-components-workshop_sameertazeehee

v0.0.1

Published

test

Downloads

2

Readme

React UI components workshop

Steps:

First component: Button

Button.tsx

  • STEP1: Style the button
  • STEP2: Style different button states (hover, active, focused)
  • STEP3: Add props to change button themes
  • STEP4: Add constants/enums for color
  • STEP5: Export Button

Button.stories.tsx

  • Add knob to change Button props

Second component: Input

  • STEP1: Add Input folder and create an input component (<label>, <input>)
  • STEP2: Style the input (hover, focused)
  • STEP3: Add props to change field validation status
  • STEP4: Explain constants/enums for shared dimentions
  • STEP5: Export the input
  • Something to think about: number, email, password inputs?

Input story

  • Add Input.stories.tsx and create a story
  • Use addon action to display value on change

Publish package to npm

  • STEP1: $ npm login
  • STEP2: $ npm run build
  • STEP3: .npmignore and exports
  • STEP4: $ npm publish
  • STEP5: Go to stackblitz.com and use your components in a new project

Third component: Content card (Try do it yourself)

  • STEP1: Add Card folder and create a Card component (<div>)
  • STEP2: Style the Card (Default color, fonts, shadow, border, padding?)
  • STEP3: Optional contents on Card and default styles (Heading, Subheading, Separator?)
  • STEP4: What if the Card is a Anchor link?
  • STEP5: What if we want the Card's header section to be an image?
  • STEP6: How does the Card defines its margins and its layout in it's parent component?
  • STEP7: What if the background color must be in contrast with its container?
  • Something to think about: What if your designers didn't realise they are creating so many variations?

Update npm package version

  • npm-version