Components / PaperTabs

Navigation

PaperTabs

Segmented editorial tabs with connected border logic.

↗ segmented content, without chrome overload.

Preview

Project status and goals for this sprint.
'use client'

import * as React from 'react'
import { cn } from '@/lib/utils'

export interface PaperTabItem {

Installation

Copy this file into your project, export its barrel, and then add it to the master UI index.

  1. Step 1.Create this file:
    components/ui/paperTabs/paperTabs.tsx
  2. Step 2.Create the barrel:
    components/ui/paperTabs/index.ts
  3. Step 3.Add this export in components/ui/index.ts:
    export * from './paperTabs'

Variants

Standard

First panel

Props

PropTypeDefaultDescription
itemsPaperTabItem[][]Tab labels and associated content.
defaultValuestringfirst tabInitially active tab value.

Examples

Docs navigation

Split large API references into digestible sections.

All available props.
<PaperTabs items={[...]} />

Analytics panes

Switch between metrics without route refresh.

Daily summary.
<PaperTabs items={[...]} />