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

smart-components-dinkar

v2.0.0

Published

This repository contains a collection of smart components designed to enhance your web application development by providing reusable and efficient solutions for common UI patterns.

Readme

Smart Components Dinkar

A collection of smart React components designed to enhance your web application development by providing reusable and efficient solutions for common UI patterns. Built with TypeScript, these components focus on modularity, flexibility, and ease of integration.

📦 Installation

npm install smart-components-dinkar

🚀 Quick Start

import React from "react";
import { Button, Loader, Select } from "smart-components-dinkar";

function App() {
  return (
    <div>
      <Button variant="primary" onClick={() => console.log("Clicked!")}>
        Click me
      </Button>

      <Loader size="medium" />

      <Select
        options={[
          { value: "option1", label: "Option 1" },
          { value: "option2", label: "Option 2" },
        ]}
        placeholder="Choose an option"
      />
    </div>
  );
}

📚 Available Components

Core Components

  • Button - Customizable button component with multiple variants and sizes
  • Loader - Loading indicators with different styles and animations
  • Select - Enhanced dropdown/select component with search and multi-select
  • Switch - Toggle switch component with smooth animations
  • Toast - Notification toast messages with different types

Layout Components

  • SegmentedTabs - Tab navigation component with segmented control
  • BorderAnimatedContainer - Container with animated border effects
  • CodeWrapper - Code display wrapper with syntax highlighting

Utility Components

  • LazyImageWithLoader - Image component with lazy loading and placeholder

🎨 Component Examples

Button Component

import { Button } from 'smart-components-dinkar';

// Different variants
<Button variant="primary">Primary Button</Button>
<Button variant="secondary">Secondary Button</Button>
<Button variant="outline">Outline Button</Button>

// Different sizes
<Button size="small">Small</Button>
<Button size="medium">Medium</Button>
<Button size="large">Large</Button>

// With loading state
<Button loading={true}>Loading...</Button>

Select Component

import { Select } from "smart-components-dinkar";

const options = [
  { value: "react", label: "React" },
  { value: "vue", label: "Vue" },
  { value: "angular", label: "Angular" },
];

<Select
  options={options}
  placeholder="Select a framework"
  searchable={true}
  multiSelect={false}
  onChange={(selected) => console.log(selected)}
/>;

Loader Component

import { Loader } from 'smart-components-dinkar';

// Different sizes
<Loader size="small" />
<Loader size="medium" />
<Loader size="large" />

// With custom text
<Loader text="Loading data..." />

🛠️ Development

Prerequisites

  • Node.js >= 16
  • npm >= 8

Setup

  1. Clone the repository:
git clone https://github.com/aakashdinkarh/smart-components-dinkar.git
cd smart-components-dinkar/packages/library
  1. Install dependencies:
npm install

Build

Build the library:

npm run build

Watch Mode

For development with auto-rebuild:

npm run watch

Linting

# Check for linting errors
npm run lint

# Fix linting errors
npm run lint:fix

📁 Project Structure

src/
├── components/           # All React components
│   ├── Button/          # Button component
│   ├── Loader/          # Loader component
│   ├── Select/          # Select component
│   └── ...
├── icons/               # Icon components
├── utils/               # Utility functions
├── types.ts             # TypeScript type definitions
└── exports.ts           # Main export file

🎯 Features

  • TypeScript Support - Full TypeScript definitions included
  • Tree Shaking - Import only what you need
  • CSS Modules - Scoped styling with CSS modules
  • Responsive Design - Mobile-first responsive components
  • Accessibility - Built with accessibility in mind
  • Customizable - Extensive customization options
  • Lightweight - Optimized bundle size

📖 Documentation

For detailed documentation, examples, and interactive demos, visit: DevDinkar CodeBook

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests and linting
  5. Submit a pull request

📄 License

ISC License - see LICENSE file for details.

🔗 Links