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

@zaplof/ui

v0.1.4

Published

A modern, lightweight React + Tailwind CSS component library

Readme

@zaplof/ui

A modern, lightweight React + Tailwind CSS component library.

npm version npm downloads license


Requirements

  • React 18+
  • Tailwind CSS (v3 or v4)
  • TypeScript (optional but recommended)

Installation

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

Setup

Next.js (Tailwind v4)

Tailwind v4 in Next.js uses a CSS-based config. No tailwind.config.ts needed.

1. Install the package

npm install @zaplof/ui

2. Add @source to your globals.css

@import "tailwindcss";
@source "../node_modules/@zaplof/ui/dist";

3. Use components

import { Header } from "@zaplof/ui";

export default function Page() {
  return <Header />;
}

Next.js (Tailwind v3)

1. Install the package

npm install @zaplof/ui

2. Update tailwind.config.ts

import type { Config } from "tailwindcss";

const config: Config = {
  content: [
    "./app/**/*.{ts,tsx}",
    "./components/**/*.{ts,tsx}",
    "./node_modules/@zaplof/ui/dist/**/*.{js,mjs}", // ← add this
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};

export default config;

3. Use components

import { Header } from "@zaplof/ui";

export default function Page() {
  return <Header />;
}

React + Vite

1. Install the package and Tailwind

npm install @zaplof/ui
npm install -D tailwindcss @tailwindcss/vite

2. Add Tailwind plugin to vite.config.ts

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
  plugins: [react(), tailwindcss()],
});

3. Add to your index.css

@import "tailwindcss";
@source "../node_modules/@zaplof/ui/dist";

4. Use components

import { Header } from "@zaplof/ui";

function App() {
  return <Header />;
}

Components

<Header />

A fully responsive header with dark mode, mobile menu, announcement bar, and CTA buttons. All props are optional — works great with zero configuration.

import { Header } from "@zaplof/ui";

// Zero config — renders with smart defaults
<Header />

// Full example
<Header
  brand="MyApp"
  announcement="v2.0 is out! See what's new"
  announcementHref="/changelog"
  navLinks={[
    { label: "Docs", href: "/docs" },
    { label: "Components", href: "/components" },
    { label: "Pricing", href: "/pricing" },
  ]}
  secondaryCtaLabel="Sign in"
  secondaryCtaHref="/login"
  ctaLabel="Get Started"
  ctaHref="/signup"
  sticky
  bordered
/>

Header Props

| Prop | Type | Default | Description | |---|---|---|---| | brand | string | "Zaplof" | Brand name shown on the left | | logoSrc | string | — | Image URL for logo (overrides text brand) | | navLinks | NavLink[] | Docs, Components, Examples, Blog | Navigation links | | ctaLabel | string | "Get Started" | Primary CTA button text | | ctaHref | string | "#" | Primary CTA button link | | secondaryCtaLabel | string | — | Secondary button text (hidden if not set) | | secondaryCtaHref | string | "#" | Secondary button link | | onCtaClick | () => void | — | Click handler for primary CTA | | onSecondaryCtaClick | () => void | — | Click handler for secondary CTA | | sticky | boolean | true | Stick header to top on scroll | | bordered | boolean | true | Show bottom border | | transparent | boolean | false | Transparent background (for hero sections) | | announcement | string | — | Top announcement bar text | | announcementHref | string | "#" | Announcement bar link | | className | string | — | Extra classes for custom overrides |

NavLink Type

interface NavLink {
  label: string;
  href: string;
}

Dark Mode

All components support dark mode out of the box via Tailwind's dark: variant. Just make sure dark mode is enabled in your project:

Tailwind v4 — enabled by default.

Tailwind v3 — add to your config:

const config = {
  darkMode: "class",
  // ...
};

Then toggle dark mode by adding the dark class to your <html> element.


TypeScript

All components ship with full TypeScript types. You can import types directly:

import type { HeaderProps, NavLink } from "@zaplof/ui";

License

MIT © Zaplof