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

component-labs

v2.5.0

Published

Premium AI-native UI primitives

Readme

🚀 Component Labs

Premium AI-native UI primitives. A collection of high-quality, beautifully animated, and ready-to-use React components built with Tailwind CSS and Framer Motion.

npm version license

✨ Features

  • 🎨 Beautifully Designed - Modern, polished UI components with premium animations
  • ⚡ Production Ready - Fully tested and optimized for performance
  • 🎭 Highly Animated - Smooth, delightful animations powered by Framer Motion
  • 🎯 Easy to Use - Simple imports and straightforward API
  • 🎨 Tailwind CSS - Built with Tailwind CSS for easy customization
  • 📦 TypeScript Support - Full TypeScript support out of the box
  • 🔧 Customizable - Extend and customize components to match your brand

📦 Installation

npm install component-labs

Or using yarn:

yarn add component-labs

Or using pnpm:

pnpm add component-labs

Requirements

This package requires the following peer dependencies:

  • React ≥ 18
  • React DOM ≥ 18
  • Tailwind CSS ≥ 3.0 (or v4)
  • Motion ≥ 12
  • Lucide React ≥ 0.300.0

⚙️ Setup

Step 1: Configure Tailwind CSS

Add the component-labs dist directory to your Tailwind configuration:

Tailwind v3 (tailwind.config.js)

module.exports = {
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
    "./node_modules/component-labs/dist/**/*.{js,mjs}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};

Tailwind v4 (index.css)

@import "tailwindcss";
@source "../node_modules/component-labs/dist";

Step 2: Install Dependencies

Make sure all peer dependencies are installed in your project.

🎯 Quick Start

import { CreativeHighlightText } from "component-labs";

export default function App() {
  return (
    <div className="p-10">
      <CreativeHighlightText />
    </div>
  );
}

📚 Available Components

Our library includes a comprehensive collection of drop-in components organized by category:

🔘 Button Components

  • EncryptButton - Button with encryption animation effect
  • FillButton - Button with fill animation
  • MagnetButton - Button with magnetic interaction
  • NeumorphismButton - Neumorphic design button
  • GithubStarsButton - GitHub stars counter button
  • UploadButton - Upload action button

📇 Card Components

  • AgenticFlowCard - Card with agentic flow visualization
  • DepthPerceptionCard - Card with depth perception effect
  • PricingCard - Professional pricing card
  • StateSynthesisCard - Card with state synthesis visualization

📝 Form Components

  • CommandSearch - Command palette search component
  • MinimalAuth - Minimal authentication form
  • PromptBar - Prompt/input bar component
  • RichComposer - Rich text composer
  • GhostForm - Ghost-style form component

📊 Grid Components

  • BentoStatsGrid - Stats grid in bento layout
  • CrosshairFeatureGrid - Feature grid with crosshair effect
  • MasonryShowcaseGrid - Masonry layout showcase

🎬 Hero Components

  • DynamicHero - Dynamic hero section
  • StaggeredEntranceHero - Hero with staggered entrance animation

🏠 Home Page Components

  • NeuralTrace - Neural network trace animation
  • TiltHoverCard - Card with tilt hover effect
  • LinkNavigation - Link-based navigation component

⌨️ Keyboard Components

  • MacKeyboard - Mac-style keyboard display
  • MacKeyboardDark - Dark mode Mac keyboard
  • TypewriterKeyboard - Typewriter-style keyboard

🔗 Link Components

  • ClipPathLinks - Links with clip-path animation
  • NeuralHoverLinks - Links with neural network hover effect
  • TakeoverLinks - Links with takeover animation

📋 Text Components

  • CreativeHighlightText - Text with creative highlight effects
  • EncryptedText - Text with encryption animation
  • StripeWriter - Stripe-style text animation
  • VelocityText - Text with velocity animation

🎨 Other Components

  • AnimatedFAQ - Animated FAQ accordion
  • EditorialSlider - Editorial-style image slider
  • KanbanBoard - Interactive kanban board
  • TerminalTypingCard - Terminal typing effect card

💡 Usage Examples

Using CreativeHighlightText

import { CreativeHighlightText } from "component-labs";

export default function Example() {
  return (
    <CreativeHighlightText
      text="Highlight important text with creative effects"
      highlightClassName="bg-gradient-to-r from-purple-400 to-pink-600"
    />
  );
}

Using Multiple Components

import { EncryptButton, PricingCard, DynamicHero } from "component-labs";

export default function App() {
  return (
    <div>
      <DynamicHero />
      <PricingCard />
      <EncryptButton onClick={() => console.log("Clicked!")} />
    </div>
  );
}

📦 Public Usage Docs

The following components are the most ready for public npm use in host apps. Each section includes the default import, common props, and the main integration note you need to know before shipping it in a real project.

UploadButton

  • File: src/components/ButtonComponents/UploadButton.jsx

Import

import { UploadButton } from "component-labs";

Default usage

<UploadButton
  onUpload={async (files) => {
    const formData = new FormData();
    formData.append("file", files[0]);

    await fetch("/api/upload", {
      method: "POST",
      body: formData,
    });
  }}
/>

Props

  • onUpload (function, required) - async upload handler that receives the selected FileList and should return a promise.
  • accept (string) - accepted file types, for example "image/*" or ".pdf".
  • multiple (boolean) - allows selecting multiple files. Default: false.
  • idleText (string) - label shown before upload starts. Default: "Upload File".
  • uploadingText (string) - label shown while the upload promise is pending. Default: "Uploading...".
  • successText (string) - label shown after the upload resolves. Default: "Complete".
  • className (string) - additional classes for the button wrapper.
  • onSuccess (function) - optional callback fired after a successful upload.
  • onError (function) - optional callback fired if the upload promise rejects.

Notes

  • This component only shows the success state after onUpload resolves, so it is safe for real upload flows.
  • The file input is hidden and triggered by the button, so host apps do not need to manage the input UI themselves.

KanbanBoard

  • File: src/components/OtherComponents/KanbanBoard.jsx

Import

import { KanbanBoard } from "component-labs";

Default usage

<KanbanBoard />

Props

  • initialTasks (Array) - starting task list. Each task should look like { id, column, tag, title }.
  • columns (Array) - board columns. Each column should look like { id, title, canAdd, isTrash }.
  • onTasksChange (function) - called whenever the task list changes.
  • onTaskMove (function) - called when a task is moved to another column.
  • onTaskAdd (function) - called when a new task is created.
  • onTaskDelete (function) - called when a task is dropped into the trash column.
  • className (string) - additional classes for the board container.
  • style (object) - inline styles for the outer container.

Example with custom data

const columns = [
  { id: "backlog", title: "BACKLOG", canAdd: true },
  { id: "doing", title: "DOING" },
  { id: "done", title: "DONE" },
  { id: "trash", title: "TRASH", isTrash: true },
];

const tasks = [
  { id: "a1", column: "backlog", tag: "API", title: "Draft upload endpoint" },
  { id: "b2", column: "doing", tag: "UI", title: "Polish board spacing" },
];

<KanbanBoard initialTasks={tasks} columns={columns} />;

Notes

  • The component manages drag-and-drop internally, so you can use it immediately without extra state wiring.
  • Use the callback props if you want to sync the board to a backend, local storage, or a parent store.

MacKeyboard

  • File: src/components/KeyBoardComponents/MacKeyboard.jsx

Import

import { MacKeyboard } from "component-labs";

Default usage

<MacKeyboard />

Props

  • This component does not expose a public prop API yet.

Notes

  • It listens to physical keyboard events and visualizes the matching keys on screen.
  • The sound sprite is loaded from /sound.ogg, so host apps must serve that asset from the public root.
  • The component uses browser-only APIs such as window, AudioContext, and IntersectionObserver, so it should be rendered on the client.

MacKeyboardDark

  • File: src/components/KeyBoardComponents/MacKeyboardDark.jsx

Import

import { MacKeyboardDark } from "component-labs";

Default usage

<MacKeyboardDark />

Props

  • This component does not expose a public prop API yet.

Notes

  • It is the dark variant of the Mac keyboard display and shares the same interaction model as MacKeyboard.
  • It also expects /sound.ogg to be available in the host app's public folder.
  • Like the light variant, it should be used on the client because it depends on browser audio and visibility APIs.

🎨 Customization

All components are built with Tailwind CSS, making them easily customizable through:

  • CSS Classes - Pass custom Tailwind classes to components
  • Theme Extension - Extend the Tailwind theme for your brand colors
  • Props - Use component props to customize behavior and appearance

📖 Documentation

For detailed component documentation, visit the Component Guide.

🌐 Live Demo

Check out the live demo and interactive examples:

👉 component-labs.vercel.app

🔗 Resources

🤝 Contributing

We welcome contributions! Please feel free to submit issues or pull requests on GitHub.

To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙌 Support

If you find this project helpful, please consider:

  • ⭐ Giving it a star on GitHub
  • 📢 Sharing it with your network
  • 🐛 Reporting bugs and suggesting features
  • 🤝 Contributing to the project

Made by Taksh Patel