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

react-easy-design

v1.0.2

Published

- [Modal](#modal) - [Loader](#loader) - [Message](#message) - [DarkMode](#darkmode) - [Dropdown](#dropdown) - [ScrollNavigation](#scrollnavigation)

Readme

react-easy-design

Install

npm install react-easy-design
yarn add react-easy-design

Usage

Modal

import { useState } from "react"
import { Modal } from "react-easy-design"

export default function App() {
  const [open, setOpen] = useState(false)

  return (
    <>
      <button onClick={() => setOpen(true)}>Modal Open</button>

      <Modal open={open} onClose={() => setOpen(false)}>
        Lorem Ipsum is simply dummy text of the printing and typesetting
        industry.
      </Modal>
    </>
  )
}

props/option

Loader

Loader.Basic

  • The indicator is placed in the location you specified.
  • It can control the screen.
import { Loader } from "react-easy-design"

export default function App() {
  return <Loader.Basic />
}

Loader.FullScreen :

  • A transparent dim covers the entire screen.
  • It can't control the screen.
  • The indicator is located in the center of the screen.
import { Loader } from "react-easy-design"

export default function App() {
  return <Loader.FullScreen />
}

Message

import { Message } from "react-easy-design"

export default function App() {
  return (
    <>
      <button onClick={Message.info("Successfully submitted")}>Submit</button>

      <button onClick={Message.warning("Please enter all information")}>
        Submit
      </button>

      <button
        onClick={Message.error(
          "Response was not successful, please try again."
        )}
      >
        Submit
      </button>
    </>
  )
}

DarkMode

  • Insert a <DarkModeButton> to easily switch dark mode. It appears in the bottom right corner of the screen, and you can control the theme with it.
import { DarkModeButton } from "react-easy-design"

export default function App() {
  return <DarkModeButton />
}
  • useDarkMode hook gives you two options.
  • "toggleDarkMode" is the function to switch between themes. Create your own button and add it to the onClick
  • "isDarkMode" is a boolean that indicates if you are currently in dark mode
import { useDarkMode } from "react-easy-design"

export default function App() {
  const { toggleDarkMode, isDarkMode } = useDarkMode()

  return (
    <>
      <button onClick={toggleDarkMode}>
        {isDarkMode ? "change to Ligh-mode" : "change to Dark-mode"}
      </button>
    </>
  )
}

Dropdown

  • Passes in the items to display in the dropdown in the form of {key, label}
  • Insert a trigger button inside a <Dropdown> component
import { Dropdown } from "react-easy-design"

export default function App() {
  const items = [
    { key: "ko", label: "Korean" },
    { key: "en", label: "English" },
    { key: "jp", label: "Japanese" }
  ]

  return (
    <Dropdown
      menu={items}
      onSelect={item => console.log(item.key)}
      placement="bottomLeft"
    >
      <button>trigger</button>
    </Dropdown>
  )
}

ScrollNavigation

Set "id" to the elements to be placed in the navigation bar, and pass the ids to an array

import { ScrollNavigation } from "react-easy-design"

export default function App() {
  return (
    <>
      <ScrollNavigation
        items={["reservation", "products", "location", "promotion"]}
        top={100}
        backgroundColor="yellow"
        textColor="black"
      />

      {/* contents to example display */}
      <div id="reservation" style={{ height: "100vh" }}>
        reservation
      </div>
      <div id="products" style={{ height: "100vh" }}>
        items
      </div>
      <div id="location" style={{ height: "100vh" }}>
        location
      </div>
      <div id="promotion" style={{ height: "100vh" }}>
        promotion
      </div>
    </>
  )
}