felipemenezes098

Flexnative Tabs

Component

About

Composable tabs primitive from the Flexnative UI registry with 10 pattern variants: basic, underline (line), vertical, disabled, leading icons, count badges, in-card, preview/code switch, pricing toggle, and custom pill triggers. Built on Radix Tabs.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Flexnative Tabs to your project and fits it to your theme.

Code

How Flexnative Tabs is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client'

import { Badge } from '@/components/ui/badge'
import {
  Tabs,
  TabsContent,
  TabsList,
  TabsTrigger,
} from '@/components/ui/flexnative-tabs'

export function Tabs07() {
  return (
    <Tabs defaultValue="inbox" className="w-full max-w-md">
      <TabsList variant="line">
        <TabsTrigger value="inbox">
          Inbox
          <Badge variant="secondary">12</Badge>
        </TabsTrigger>
        <TabsTrigger value="drafts">
          Drafts
          <Badge variant="secondary">3</Badge>
        </TabsTrigger>
        <TabsTrigger value="archive">Archive</TabsTrigger>
      </TabsList>
      <TabsContent value="inbox" className="w-full pt-4">
        <ul className="divide-border/60 w-full divide-y rounded-lg border">
          <li className="flex items-center gap-3 px-3 py-2.5 first:rounded-t-lg">
            <span className="bg-primary size-2 shrink-0 rounded-full" aria-hidden />
            <span className="truncate text-sm font-medium">
              Q2 roadmap review
            </span>
          </li>
          <li className="flex items-center gap-3 px-3 py-2.5">
            <span className="bg-primary size-2 shrink-0 rounded-full" aria-hidden />
            <span className="truncate text-sm font-medium">
              Design system handoff
            </span>
          </li>
          <li className="flex items-center gap-3 px-3 py-2.5 last:rounded-b-lg">
            <span className="size-2 shrink-0 rounded-full" aria-hidden />
            <span className="text-muted-foreground truncate text-sm">
              Invoice #1042
            </span>
          </li>
        </ul>
      </TabsContent>
      <TabsContent value="drafts" className="w-full pt-4">
        <ul className="w-full space-y-2">
          <li className="text-muted-foreground rounded-lg border border-dashed px-3 py-2.5 text-sm">
            Weekly update
          </li>
          <li className="text-muted-foreground rounded-lg border border-dashed px-3 py-2.5 text-sm">
            Partnership intro
          </li>
        </ul>
      </TabsContent>
      <TabsContent value="archive" className="w-full pt-4">
        <div className="text-muted-foreground w-full rounded-lg border border-dashed px-4 py-8">
          <p className="text-sm font-medium text-foreground">All caught up</p>
          <p className="text-xs">Archived threads appear here.</p>
        </div>
      </TabsContent>
    </Tabs>
  )
}

export default function Default() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-10">
      <Tabs07 />
    </div>
  )
}

Dependencies

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    930
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • Split Hero With Image Cards

    Split Hero With Image Cards

    402
  • Editorial Image Hero

    Editorial Image Hero

    388
  • Scroll 01

    Scroll 01

    341
  • Real Estate Search Hero

    Real Estate Search Hero

    190
  • Editorial Hero

    Editorial Hero

    173
  • Hero with Dashboard Mockup

    Hero with Dashboard Mockup

    123