Build Faster with npui

A modern, accessible, and highly customizable component library for React. Accelerate your development with beautiful, ready-to-use UI components.

Welcome to npui

npui – a modern, flexible, and easy-to-use component library built with Tailwind CSS. Our goal is to empower developers to build beautiful UIs quickly and efficiently, while giving you full control over customization. Let's get you started! 🚀

✨ What is npui?

npui is a component library designed to help you speed up development without sacrificing flexibility. Every component is created with simplicity in mind, while still offering powerful customization options.

No need to dig into node_modules! Components are installed directly into your project so you can modify them to suit your exact needs. 💡

🔧 Installation

Get started by installing npui into your project. It's super easy!

npx npui add <component-name>

For example, to add a Button component:

npx npui add button

That’s it! The component will now be available in your project folder, ready for customization. 🎨

🧩 Features & 🛠️ Customizing Components
  • Tailwind CSS-first: All components are styled using Tailwind CSS, so you can leverage its utility classes for effortless styling.
  • Full Customization: You have direct access to the component files. Tailor them to your project’s needs with ease! ✍️
  • Documentation: Find everything you need right here, from how to use each component to how to tweak them for your project. 📚

One of npui's standout features is the ability to easily customize components. After installing a component, simply modify the files in your project folder to match your design and functionality needs. For example, you can update styles, tweak layouts, or add functionality – it’s all in your hands! 👐

Why Choose npui?

Accelerated Development

Build UIs faster with ready-to-use, high-quality components.

Full Customization

Direct access to component files for complete control and tailoring.

Accessibility First

Components are built with accessibility in mind, following best practices.

Modular & Composable

Combine components like building blocks to create complex interfaces.

How it Works: The npui Puzzle

Component A
Component B
Component C
Component D

npui components are like individual puzzle pieces, each designed to be self-contained and highly functional.

You pick the pieces you need, and they seamlessly snap together to form a complete, beautiful UI.

This modular approach gives you ultimate flexibility and control over your project's design and functionality.

Organized for Scalability: Categories & Utilities

Component Categories

To keep our growing library organized, components are now grouped into logical categories like "General Purpose," "Form Elements," and "Feedback & Status." This makes it easier to browse and find the exact component you need.

Each component's data (props, variants) is co-located with its component file, ensuring that all relevant information is together, simplifying maintenance and expansion.

Essential Utilities

Our library leverages small, focused utility functions to keep the codebase clean and efficient. For instance, the `cn` helper from `lib/utils.ts` is used for conditionally joining Tailwind CSS classes, enhancing readability and maintainability.

These utilities are designed to be lightweight and reusable, supporting a consistent and scalable development experience across all `npui` components.

Explore All Components

Button
A customizable button component with various styles and sizes.
View Docs
Card
A flexible card component for grouping related content.
Card Title
Card description goes here.

This is the content of the card. You can put any information here.

View Docs
Alert
Displays a callout for important information.
View Docs
Input
A flexible and accessible input field.
Carousel
A flexible and accessible carousel component for cycling through elements.
Image 1
Image 2
Image 3
Image 4
Image 5
View Docs
Accordion
A vertically stacked list of interactive headings that can be toggled to show and hide content.

View Docs
Tabs
A set of layered sections of content—known as tab panels—that are displayed one at a time.
Make changes to your account here.
View Docs
Dialog
A modal dialog that interrupts the user's workflow to ask a question or make a decision.
View Docs
Dropdown Menu
Displays a menu to the user—such as a list of actions or functions—triggered by a button.
Checkbox
A control that allows the user to toggle between checked and unchecked states.
View Docs
Radio Group
A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.
View Docs
Select
A custom select component for selecting a value from a list of options.
View Docs
Slider
A control that allows the user to select a value or a range of values along a track.
Switch
A control that allows the user to toggle between checked and unchecked states.
View Docs
Tooltip
A pop-up that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
Avatar
Displays a user profile picture or initials.
Badge
Small count and labeling component.
Progress
Displays an indicator showing the completion progress of a task.
Toast
A brief, temporary message that appears on the screen.
View Docs
Calendar
A date picker component for selecting single or multiple dates, or a date range.
SuMoTuWeThFrSa
View Docs
Alert Dialog
A modal dialog that interrupts the user with important content and expects a response.
View Docs
Hover Card
For sighted users to preview content available behind a link.
View Docs
Separator
Visually or semantically separates content.

Radix Primitives

An open-source UI component library.

Blog
Docs
Source
View Docs

What Our Users Say

AJ

"npui has revolutionized our development workflow. The components are incredibly flexible and easy to integrate. A true game-changer!"

- Alice Johnson, Lead Developer at TechCorp

BW

"As a designer, I love the full customization npui offers. It allows me to bring my visions to life without fighting the framework."

- Bob Williams, UI/UX Designer

CB

"Getting our MVP out quickly was crucial, and npui made it possible. The speed and quality are unmatched."

- Charlie Brown, Startup Founder

Ready to Build Something Amazing?

Start integrating npui components into your projects today and streamline your development workflow.

Get Started with npui