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

@entro314labs/react-arc-tabs

v1.0.22

Published

Reusable arc-style tabs component for React and Next.js projects

Readme

@entro314labs/react-arc-tabs

Reusable arc-style tabs component for React and Next.js, including a Tailwind CSS v4+ variant.

Highlights

  • Accessible tabs: ARIA roles + keyboard interactions
  • Controlled and uncontrolled state models
  • CSS-based and Tailwind v4+ variants
  • Concentric radius geometry (inner radius = parent radius - inset) for strip/tab/panel alignment
  • Switch animations (including sliding active backdrop and animated panel entry)
  • TypeScript-first API

Compatibility

  • React 18.2+ and 19+
  • Next.js (App Router and Pages Router)
  • Tailwind CSS 4+ for ArcTabsTailwind

Install

npm install @entro314labs/react-arc-tabs

Basic usage (CSS variant)

import { ArcTabs, type ArcTabItem } from "@entro314labs/react-arc-tabs";
import "@entro314labs/react-arc-tabs/styles.css";

const items: ArcTabItem[] = [
  { id: "overview", label: "Overview", content: <div>Overview content</div> },
  { id: "activity", label: "Activity", content: <div>Activity feed</div>, badge: 8 },
  { id: "settings", label: "Settings", content: <div>Settings panel</div> }
];

export function Example() {
  return (
    <ArcTabs
      items={items}
      defaultValue="overview"
      motionPreset="expressive"
      motionDuration={320}
      radius={16}
      stripPadding={4}
      notch={6}
      seamGap={0}
      ariaLabel="Project sections"
    />
  );
}

Tailwind CSS v4+ usage

ArcTabsTailwind ships with utility-class styling, so you do not import styles.css.

import { ArcTabsTailwind, type ArcTabItem } from "@entro314labs/react-arc-tabs";

const items: ArcTabItem[] = [
  { id: "overview", label: "Overview", content: <div>Overview content</div> },
  { id: "activity", label: "Activity", content: <div>Activity feed</div>, badge: 8 },
  { id: "settings", label: "Settings", content: <div>Settings panel</div> }
];

export function ExampleTailwind() {
  return (
    <ArcTabsTailwind
      items={items}
      defaultValue="overview"
      fit="equal"
      motionPreset="expressive"
      classNames={{
        root: "max-w-3xl",
        panel: "prose prose-sm max-w-none"
      }}
    />
  );
}

Tailwind source scanning

If your setup does not automatically scan classes from installed dependencies, add:

@import "tailwindcss";
@source "../node_modules/@entro314labs/react-arc-tabs/dist/**/*.{js,cjs}";

Next.js usage

"use client";

import { ArcTabs, type ArcTabItem } from "@entro314labs/react-arc-tabs";
import "@entro314labs/react-arc-tabs/styles.css";

const tabs: ArcTabItem[] = [
  { id: "summary", label: "Summary", content: <div>Summary panel</div> },
  { id: "billing", label: "Billing", content: <div>Billing panel</div> },
  { id: "usage", label: "Usage", content: <div>Usage panel</div> }
];

export default function Page() {
  return <ArcTabs items={tabs} defaultValue="summary" ariaLabel="Account tabs" />;
}

Motion presets

  • none: no animation
  • subtle: minimal transitions (default)
  • expressive: sliding active backdrop + stronger panel motion
<ArcTabs motionPreset="expressive" motionDuration={320} />

Main API

ArcTabs / ArcTabsTailwind

  • items: ArcTabItem[]
  • value?: string
  • defaultValue?: string
  • onValueChange?: (value, item, index) => void
  • activationMode?: "automatic" | "manual"
  • size?: "sm" | "md" | "lg"
  • fit?: "content" | "equal"
  • motionPreset?: "none" | "subtle" | "expressive"
  • motionDuration?: number
  • radius?: number (outer shell radius)
  • stripPadding?: number | string (inset from shell to tabs; drives concentric tab/panel geometry)
  • tabRadius?: number | string (optional explicit tab radius override)
  • seamGap?: number | string (vertical distance between active tab and panel; default 0 for a fused shape)
  • notch?: number | string (controls inverted corner curve size)
  • cutoutColor?: string (color of the concave seam cutouts; defaults to strip background)
  • keepMounted?: boolean
  • ariaLabel?: string

By default, the component derives radii from concentric rules:

  • tabRadius = radius - stripPadding
  • panelCornerRadius = radius - (2 × stripPadding)
  • defaultNotch = clamp(6px, tabRadius × 0.5, 12px)

Reference profile used for the attached design:

  • radius = 16
  • stripPadding = 4
  • tabRadius = 12
  • panelCornerRadius = 8
  • notch = 6
  • seamGap = 0

Additional styling/theming props are available for both variants.

Tailwind slot overrides

ArcTabsTailwind supports classNames slots:

  • root, list, indicator, item, tab
  • tabSelected, tabUnselected, tabDisabled
  • icon, text, badge, panels, panel

ArcTabItem

  • id: string
  • label: ReactNode
  • content: ReactNode
  • disabled?: boolean
  • icon?: ReactNode
  • badge?: ReactNode

Development

pnpm install
pnpm run typecheck
pnpm run build

License

MIT