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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@danya543/custom-components-lib

v1.1.13

Published

A modern, reusable React component library with TypeScript support, Storybook documentation, and easy integration into your projects.

Downloads

120

Readme

@danya543/custom-components-lib

A modern, reusable React component library with TypeScript support, Storybook documentation, and easy integration into your projects.


Deploy

Storybook

Table of Contents


Overview

@danya543/custom-components-lib is a React component library designed to provide a set of customizable, accessible, and well-tested UI components. Written entirely in TypeScript, it comes with ESLint and Prettier for consistent code style, Storybook for interactive component documentation, and a smooth build process using modern tooling.


Features

  • Written in TypeScript for strong typing and IDE support
  • Storybook integration for live component previews and documentation
  • ESLint configured with recommended React and TypeScript rules, plus Prettier for formatting
  • Simple import sorting for clean imports
  • Components ready to use and easy to customize
  • Built with Rollup (or your bundler of choice) for optimal package size
  • Published on npm for easy installation

Installation

Install the package via npm:

npm install @danya543/custom-components-lib

or

yarn add @danya543/custom-components-lib

Usage

Import components into your React app:

import { Button, Modal } from '@danya543/custom-components-lib';

function App() {
  return (
    <div>
      <Button onClick={() => setOpen(true)} size={'large'}>open modal</Button>
      <Modal open={open} onClose={() => setOpen(false)}>
        <h2>Hi!</h2>
        <p>It's modal window</p>
      </Modal>
    </div>
  );
}

Development

Storybook

Storybook serves as your live playground and documentation hub.

  • Run Storybook locally:

  • npm run storybook
  • Open your browser at http://localhost:6006 to view all components with interactive controls and docs.

  • Write stories co-located alongside components.

Build

The library is built using Rollup (or your configured bundler):

  • To create a production build:
npm run build:prod
  • The output is placed in the build folder, ready to publish or consume locally.

  • And for local starting project

npm run start

Linting

Linting with ESLint and auto-fixing with Prettier is configured for consistent code style:

  • Run lint check:
npm run lint
  • Auto-fix lint errors:
npm run lint:fix

Library Structure

custom-components-lib/
├── build/                  # Compiled production builds
├── buildLib/                  # Compiled production builds library
├── demo/
│   ├── App.tsx            # Main component
│   ├── App.module.scss    # Styles for main component
│   ├── index.ts           # Main entry for demo
├── src/
│   ├── components/        # React components (Button, Modal, etc.)
│   ├── globals.d.ts       # Global declare for files
│   ├── index.ts           # Main entry exporting components
├── .eslint.config.mjs     # ESLint configuration
├── .prettierrc            # Prettier formatting config
├── webpack.config.js      # Bundler prod config
├── webpack.lib.config.js  # Bundler lib config
├── jest.config.ts         # Config for tests
├── tsconfig.json          # Config for typescript
├── package.json           # npm package metadata & scripts
└── README.md              # This file

Publishing to npm

The package is published to npm under the scope @danya543.

To publish a new version:

  1. Update the version in package.json (use semantic versioning).

  2. Build the library:

npm run build:lib
  1. Publish:
npm publish --access public
  1. Make sure you are logged into npm with:
npm login