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

@omkarwarik1204/dynamic-island-navbar

v1.1.0

Published

A floating, Apple-style **Dynamic Island navbar** for React — a centered dark pill that smoothly stretches on hover. Built with React + Tailwind CSS, shipped with TypeScript types and zero runtime dependencies.

Readme

@omkarwarik1204/dynamic-island-navbar

A floating, Apple-style Dynamic Island navbar for React — a centered dark pill that smoothly stretches on hover. Built with React + Tailwind CSS, shipped with TypeScript types and zero runtime dependencies.


Features

  • 🎯 Floating, centered "Dynamic Island" pill
  • ✨ Smooth horizontal stretch animation on hover
  • 📱 Fixed-position, stays at the top while scrolling
  • 🧩 Fully typed (TypeScript declarations included)
  • 🪶 Tiny — React is a peer dependency, not bundled

Installation

npm install @omkarwarik1204/dynamic-island-navbar

Requires React 19+ in your project (it's a peer dependency — most React projects already have it).


Quick Start (in 3 steps)

1. Install

npm install @omkarwarik1204/dynamic-island-navbar

2. Import the component and the CSS

import { DynamicIslandNavbar } from "@omkarwarik1204/dynamic-island-navbar";
import "@omkarwarik1204/dynamic-island-navbar/style.css";

3. Drop it into your JSX

<DynamicIslandNavbar />

That's it. You don't need Tailwind installed in your project — the styles are bundled in.


Usage

import { DynamicIslandNavbar } from "@omkarwarik1204/dynamic-island-navbar";
import "@omkarwarik1204/dynamic-island-navbar/style.css";

function App() {
  return (
    <DynamicIslandNavbar
      brand="Omkar"
      links={[
        { label: "Home", href: "#home" },
        { label: "Projects", href: "#projects" },
        { label: "About", href: "#about" },
        { label: "Contact", href: "#contact" },
      ]}
      ctaHref="https://github.com/omkarwarik02"
    />
  );
}

export default App;

⚠️ Don't forget the CSS import. Without import '.../style.css' the navbar renders unstyled (no pill, no positioning). This works whether or not your own project uses Tailwind.

Minimal usage

Pass nothing and you get sensible defaults:

<DynamicIslandNavbar />

Props

| Prop | Type | Default | Description | | ---------- | ----------------------------------- | -------------- | ---------------------------------------------------- | | brand | string | "Brand" | Text shown on the left of the pill (your name/logo). | | links | { label: string; href: string }[] | 4 sample links | The center navigation links. | | ctaHref | string | "#" | URL for the right-side action item. | | ctaLabel | React.ReactNode | </> | Content shown on the right (text, icon, etc.). |

All props are optional — the component renders sensible defaults if you pass nothing.


Styling notes

  • The component is position: fixed, so it pins to the top-center of the viewport regardless of where you place it in your JSX. Render it once, near the root of your app.
  • Colors and shape are baked into the bundled style.css. To customize beyond the props, fork the component or override with your own CSS targeting the pill.

TypeScript

Types are bundled — you get full autocomplete and type-checking out of the box, no @types package needed.

import { DynamicIslandNavbar } from "@omkarwarik1204/dynamic-island-navbar";
// `brand`, `links`, `ctaHref`, `ctaLabel` are all type-checked

License

MIT © Omkar Warik