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

glide-tabs

v0.1.0

Published

An animated tab group component for React

Readme

Glide Tabs

An animated tab group component for React, powered by motion.dev.

Installation

npm install glide-tabs motion

Quick Start

import { useState } from 'react';
import { TabGroup, Tab } from 'glide-tabs';
import 'glide-tabs/styles.css';

function App() {
  const [active, setActive] = useState('overview');

  return (
    <TabGroup value={active} onChange={setActive}>
      <Tab value="overview">Overview</Tab>
      <Tab value="features">Features</Tab>
      <Tab value="pricing">Pricing</Tab>
    </TabGroup>
  );
}

Variants

Choose between pill (default) and underline indicator styles:

<TabGroup value={active} onChange={setActive} variant="underline">
  <Tab value="tab1">Tab 1</Tab>
  <Tab value="tab2">Tab 2</Tab>
</TabGroup>

Scrollable Tabs

Set maxWidth to constrain the width and enable horizontal scrolling:

<TabGroup value={active} onChange={setActive} maxWidth={400}>
  <Tab value="a">Overview</Tab>
  <Tab value="b">Features</Tab>
  <Tab value="c">Pricing</Tab>
  <Tab value="d">Documentation</Tab>
  <Tab value="e">Changelog</Tab>
  <Tab value="f">Support</Tab>
</TabGroup>

API

<TabGroup>

| Prop | Type | Default | Description | | --- | --- | --- | --- | | value | string | — | Active tab value (controlled) | | onChange | (value: string) => void | — | Called when a tab is clicked | | variant | "pill" \| "underline" | "pill" | Visual style of the indicator | | maxWidth | number \| string | — | Max width before scrolling | | className | string | — | Custom class on the container | | style | CSSProperties | — | Inline style overrides |

<Tab>

| Prop | Type | Default | Description | | --- | --- | --- | --- | | value | string | — | Unique tab identifier | | disabled | boolean | false | Disables the tab | | className | string | — | Custom class on the tab button | | children | ReactNode | — | Tab label content |

Theming

Glide Tabs ships a small CSS file with custom properties. Override them to match your design:

[data-glide-root] {
  --glide-bg: #f4f4f5;
  --glide-active-bg: #ffffff;
  --glide-text: #71717a;
  --glide-active-text: #09090b;
  --glide-border-radius: 8px;
  --glide-padding: 4px;
  --glide-tab-padding: 8px 16px;
  --glide-font-size: 14px;
  --glide-font-weight: 500;
  --glide-underline-color: #09090b;
  --glide-underline-height: 2px;
  --glide-indicator-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

Accessibility

  • Uses role="tablist" and role="tab" with proper aria-selected
  • Supports keyboard navigation via tabIndex
  • Focus-visible styling included
  • Disabled tabs are properly marked with aria-disabled

License

MIT