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-ui/react-tabs

v0.0.7

Published

A flexible and customizable tab component for React applications

Readme

@glide-ui/react-tabs

@glide-ui/react-tabs is a lightweight, highly customizable tab component library for React. It provides a flexible API for building tab-based navigation systems with multiple styles, including line-based tabs, segment-based tabs, and card-style tabs. The library is built using accessibility (ARIA-compliant) in mind.

🚀 Features

  • Customizable – Easily style tabs using class-based selectors and flexible props.
  • Multiple Styles – Supports line, segment, and card-based tabs out of the box.
  • Accessible (ARIA Support) – Ensures keyboard and screen-reader compatibility. (More enhancements coming soon!)
  • Composable & Extendable – Implements the Compound Component Pattern for better flexibility.

📦 Installation

You can install the library using either npm or yarn:

npm install --save @glide-ui/react-tabs

or

yarn add @glide-ui/react-tabs

Demo

Check out the Demo Usage

Controlled Tabs Example

import React, { useState } from 'react';
import Tabs from '@glide-ui/react-tabs';
import '@glide-ui/react-tabs/style.css';

function App() {
  const [activeTab, setActiveTab] = useState(0);

  const onSelectedTab = (index: number) => {
    setActiveTab(index);
  };

  return (
    <Tabs value={activeTab}>
      <Tabs.TabList onTabChange={onSelectedTab}>
        <Tabs.Tab>
          <span>Eye</span>
        </Tabs.Tab>
        <Tabs.Tab>
          <span>Comments</span>
        </Tabs.Tab>
        <Tabs.Tab>
          <span>Bell</span>
        </Tabs.Tab>
        <Tabs.Tab>
          <span>Cog</span>
        </Tabs.Tab>
      </Tabs.TabList>

      <Tabs.TabPanel>
        <h3>Dashboard</h3>
        <p>Welcome to the Dashboard</p>
      </Tabs.TabPanel>
      <Tabs.TabPanel>
        <h3>Comments</h3>
        <p>Welcome to the Comments section</p>
      </Tabs.TabPanel>
      <Tabs.TabPanel>
        <h3>Notifications</h3>
        <p>No Notifications available</p>
      </Tabs.TabPanel>
      <Tabs.TabPanel>
        <h3>Settings</h3>
        <p>No Settings available</p>
      </Tabs.TabPanel>
    </Tabs>
  );
}

export default App;

API Props

Tabs Component – API Props

| Prop | Default Value | Explanation | | ------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | children | - | Required. Should include one Tabs.TabList and one or more Tabs.TabPanel. | | orientation | "horizontal" | optional. Defines the orientation of the tab. Options: "horizontal", "vertical". | | value | 0 | Required. Index of the active tab. Used to control the selected tab programmatically. Listen to onTabChange event on Tabs.TabList component to get the active index | | forceRender | false | Determines whether all tab panel content is rendered at once. If set to true, all content will be rendered and hidden as needed. Otherwise, only the active panel's content is rendered. |

Tabs.TabList Component - API Props

| Prop | Default Value | Explanation | | ---------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | children | - | Required. Should include one or more Tabs.Tab components. | | type | "line" | Optional. Defines the style of the tab list. Options: "card", "line", or "segment". | | className | "tab-list" | Optional. Custom class name for styling the tab list container. | | justifyContent | "start" | Optional. Aligns tab items. Works only when type is "line". Options: "space-between", "space-around", "space-evenly", "start", "center", "end". | | size | "medium" | Optional. Size of the tab buttons. Options: "small", "medium", "large". | | onTabChange | () => void | Required. Event triggered when the active tab changes. Receives the tab index as an argument. |

Tabs.Tab Component - API Props

| Prop | Default Value | Explanation | | ----------- | ------------- | ------------------------------------------------------------------------- | | disabled | false | Optional. Disables the tab if set to true. Prevents selection on click. | | className | "tab-item" | Optional. Custom class for styling the individual tab. | | children | - | Required. React element to render tab label, icon, or any custom content. |

Tabs.TabPanel Component - API Props

| Prop | Default Value | Explanation | | ----------- | ------------- | ------------------------------------------------------------ | | children | - | Required. React element to display in the panel. | | className | "tab-panel" | Optional. Custom class for styling the individual tab panel. |

🛣️ Roadmap

  • [✅] Vertical Orientation Support – Add support for vertical tab layouts

  • [ ] RTL Support – Enable compatibility for RTL languages (e.g. Arabic, Hebrew)

  • [ ] Enhanced Animations & Transitions – Add smooth tab-switch animations