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

my-storybook-react-library

v2.1.10

Published

The library contains components from Storybook that can be used in your application

Readme

Components for your project

:mortar_board: my-storybook-react-library is library that provides some components for using them in a project, and for each component a story is implemented, thanks to which the component can be viewes in the storybook.

The library provides the following components:

  • Button
  • CalendarTask
  • Loader
  • SearchInput
  • Today
  • WeatherItem

To start working and use the components you need to import them into the project: import * as L from "my-storybook-react-library"

1. Button

:pencil: Description

The Button component is customizable button build with React and styled-components. It allows to easily create buttons with different sizes and click handlers.

Props

  • children: ReactNode. The content to be displayed inside the button
  • onClick: () => void (optional)
  • size: "small" | "medium" (optional). The size of button.

Example

<L.Button onClick={handleSearch}>Search</L.Button>

2. CalendarTask

:pencil: Description

The CalendarTask component is a simple and reusable component designed to display a task with its scheduled time.

Props

  • time: string. The time associated with task, displayed prominently in the oval area
  • task: string

Example

<div>
   <L.CalendarTask time="10:00" task="New task" />
</div>

3. Loader

:pencil: Description

This is a common rotating circle loading component.

4. SearchInput

:pencil: Description

This is an input field designed for searching and selecting options. It supports dynamic search filtering with a dropdown list.

Props

  • placeholder: string (optional)
  • onChange: (string) => void. Callback function triggered whenever the input value changes. It receives the current input value as a parametr
  • areas: Area[]. The array of objects with a name property representing the list of searchable items
  • onSelect: (area) => void. Callback function triggered when an item from the dropdown is selected. It receives the selected item as a parameter.

Example

 <L.SearchInput
      placeholder="Введите город..."
      areas={[
        { name: "Минск" },
        { name: "Витебск" },
        { name: "Гродно" },
        { name: "Брест" },
        { name: "Гомель" },
        { name: "Могилёв" },
      ]}
      onChange={handleInputChange}
      onSelect={handleSelect}
    />

5. Today

:pencil: Description

The Today component displays the current date and time in a user-friendly format. It uses Intl.DateTimeFormatOptions to localize the date and time presentation.

Props

  • screenSize: "mediumScreen" | "extraLargeScreen" (optional)

6. WeatherItem

:pencil: Description

This component displays a single card for the daily weather forecast. It includes a day, an icon representing the weather conditions, and a temperature in degrees Celsius. The component uses images from OpenWeatherMap API.

Props

  • day: string. The name or date of the day to display
  • icon: string. The code of the OpenWeatherMap icon representing the weather conditions (e.g. "01d" for a sunny day, "10n" for a rainy night)
  • temp: number. The temperature for the specified day in degrees Celsius

Example

<L.WeatherItem day="Monday" icon="01d" temp={20} />