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

stackloop-ui

v1.0.6

Published

A modern, animated React component library built with Framer Motion, Lucide Icons, and Tailwind CSS

Downloads

53

Readme

@stackloop/ui

A modern, consistent, and animated React component library built with Framer Motion, Lucide Icons, and Tailwind CSS v4.

Features

Consistent Design System - Single primary color palette with automatic shade generation
🎨 Unified Styling - Consistent borders, shadows, spacing, and border radius across all components
🎭 Smooth Animations - Framer Motion animations on every component
📱 Mobile-First - Touch-friendly interactions and responsive design
🎯 TypeScript - Fully typed components with comprehensive props
🎁 Tree-Shakeable - Import only what you need

Installation

npm install @stackloop/ui
# or
yarn add @stackloop/ui
# or
pnpm add @stackloop/ui

Peer Dependencies:

npm install react react-dom framer-motion lucide-react clsx tailwind-merge

Setup

Import the theme CSS file in your application's entry point:

// main.tsx or App.tsx
import '@stackloop/ui/theme.css'

Usage

import { Button, Input, Card, CardHeader, CardTitle, CardContent, Modal } from '@stackloop/ui'
import { useState } from 'react'

function App() {
  const [isOpen, setIsOpen] = useState(false)
  
  return (
    <Card>
      <CardHeader>
        <CardTitle>Welcome</CardTitle>
      </CardHeader>
      <CardContent>
        <Input 
          label="Email" 
          type="email" 
          placeholder="[email protected]" 
        />
        <Button onClick={() => setIsOpen(true)}>
          Open Modal
        </Button>
      </CardContent>
      
      <Modal
        isOpen={isOpen}
        onClose={() => setIsOpen(false)}
        title="Hello World"
      >
        <p>This is a modal dialog</p>
      </Modal>
    </Card>
  )
}

Components

Form Components

  • Button - Primary, secondary, ghost, and danger variants with loading states
  • Input - Text inputs with icons, labels, and error states
  • Textarea - Multi-line text input with validation
  • Checkbox - Animated checkboxes with labels
  • Toggle - Switch toggle with descriptions
  • Slider - Single value range slider
  • DualSlider - Range slider with min/max values
  • RadioPills - Stylized radio button group
  • Dropdown - Searchable dropdown with icons
  • DatePicker - Calendar date picker

Layout Components

  • Card - Container with variants (default, outlined, elevated)
  • CardHeader, CardTitle, CardDescription, CardContent - Card sub-components
  • Drawer - Slide-in side panel (left/right)
  • Modal - Centered overlay dialog
  • BottomSheet - Mobile-friendly bottom slide-up panel
  • Table - Sortable data table with loading states
  • Pagination - Page navigation with item counts

Display Components

  • Badge - Status indicators with color variants
  • FloatingActionButton (FAB) - Fixed positioned action button with expandable menu
  • StepProgress - Multi-step progress indicator
  • ThumbnailGrid - Image grid with selection
  • StatusBadges - Offline badge and sync indicator

Media Components

  • FileUpload - Drag-and-drop file uploader
  • AudioRecorder - Audio recording interface

Usage Example

import { Button, Card, CardHeader, CardTitle, Input } from './index'
import { Mail } from 'lucide-react'

function MyComponent() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Sign In</CardTitle>
      </CardHeader>
      <Input 
        label="Email" 
        type="email" 
        leftIcon={<Mail />} 
        placeholder="[email protected]"
      />
      <Button variant="primary">Submit</Button>
    </Card>
  )
}

Design System

Color Palette

The library uses a single primary color (#2e7d32 green) with automatically generated shades:

  • Primary: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900
  • Neutral: Consistent grayscale from 50-900
  • Semantic: Success, Warning, Error, Info

Design Tokens

  • Border Radius: sm (0.375rem), md (0.5rem), lg (0.75rem), xl (1rem), full (9999px)
  • Shadows: sm, md, lg, xl, card
  • Spacing: xs (0.5rem), sm (0.75rem), md (1rem), lg (1.5rem), xl (2rem)

Animations

All components include Framer Motion animations:

  • Fade in - Opacity transitions
  • Scale - Grow/shrink effects
  • Slide - Directional entrance/exit
  • Spring - Bouncy interactions

Tech Stack

  • React 19 - UI framework
  • TypeScript - Type safety
  • Vite - Build tool
  • Tailwind CSS v4 - Styling
  • Framer Motion - Animations
  • Lucide React - Icons

Development

# Install dependencies
npm install

# Run development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

File Structure

src/
├── components/
│   ├── Button.tsx
│   ├── Input.tsx
│   ├── Card.tsx
│   ├── ... (all components)
├── index.ts          # Main export file
├── utils.ts          # Utility functions (cn helper)
├── theme.css         # Design tokens and global styles
├── App.tsx           # Component showcase
└── main.tsx          # Entry point

License

MIT

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])