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

pretty-interaction-icons

v1.1.5

Published

pretty interaction icons for React

Downloads

36

Readme

Pretty Interaction Icons

This is my attempt to create a npm package containing interaction icons that look cool w mo.js

npm install pretty-interaction-icons

Inspired by this Medium post

Credit to Codrops + Ohans Emmanuel

Table of Content


PropTypes & Default Props HERE


Colors

Used palette from Marvel (Working on letting users specify hex as props)

// light shades
white: "#FFFFFF",
snow: "#F9FAFC",
darkSnow: "#EFF2F7",
extraDarkSnow: "#E5E9F2",
// dark tones
silver: "#8492A6",
slate: "#3C4858",
steel: "#273444",
black: "#1F2D3D",
// dark shades
smoke: "#E0E6ED",
darkSmoke: "#D3DCE6",
extraDarkSmoke: "#C0CCDA",
// blue shades
lightBlue: "#85D7FF",
blue: "#1FB6FF",
darkBlue: "#009EEB",
// purple shades
lightPurple: "#A389F4",
purple: "#7E5BEF",
darkPurple: "#592DEA",
// pink shades
lightPink: "#FF7CE5",
pink: "#FF49DB",
darkPink: "#FF16D1",
// orange shades
lightOrange: "#FF9E7C",
orange: "#FF7849",
darkOrange: "#FF5216",
// green shades
lightGreen: "#29EB7F",
green: "#13CE66",
darkGreen: "#0F9F4F",
// yellow shades
lightYellow: "#FFD55F",
yellow: "#FFC82C",
darkYellow: "#F8B700",
// ui colors
info: "#1FB6FF",
success: "#13CE66",
danger: "#FF4949",
warning: "#FFC82C"

Examples

import { MediumClap, Like, Music, Heart } from "pretty-interaction-icons";

MediumClap

Medium clap gif

<MediumClap
  size="medium"
  color="darkGreen"
  labelColor="darkGreen"
  clapCount={0}
  clapCountTotal={10}
/>

Like

Like gif

<Like
  hasBurst
  hasRing
  hasShrink
  ringColor="purple"
  burstStrokeColor="blue"
  burstRadius="large"
  burstShape="line"
  ringRadius="extraLarge"
  burstCount={5}
  burstOpacity={0.5}
  ringOpacity={0.5}
  size="large"
  labelContent={10}
  labelPosition="bottom"
/>

Music

Music gif

<Music
  hasNotes
  hasRock
  color="blue"
  noteColors={["danger", "warning", "darkGreen", "warning"]}
/>

Heart

Heart gif

<Heart
  size="large"
  color="danger"
  ringColor="green"
  ringSize="extraLarge"
  hasShrink
  hasRings
  labelContent={10}
  labelPosition="top"
/>

Development

clone the component-lib-playground + this repo

git clone https://github.com/hungweiwu/pretty-interaction-icons
git clone https://github.com/hungweiwu/component-lib-playground

Setup

Link the pretty-interaction-icons package to global npm node modules folder

cd pretty-interaction-icons && npm link

Link in the playground

cd component-lib-playground && npm link pretty-interaction-icon

and now you can do

import { MediumClap, Like, Music, Heart } from "pretty-interaction-icons";

this inside App.js in the component-lib-playground

Running

inside pretty-interaction-icons root directory run

npm run build:watch
npm run lint:watch

for live linting and re-transpiling

inside component-lib-playground root directory run

npm run dev

It will serve a React app on localhost:8080

HAPPY DEVELOPING :)