felipemenezes098

Flexnative Tabs

Component 2

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 { BarChart3Icon, BellIcon, UserIcon } from 'lucide-react'

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

export function Tabs06() {
  return (
    <Tabs defaultValue="account" className="w-full max-w-md">
      <TabsList>
        <TabsTrigger value="account">
          <UserIcon data-icon="inline-start" />
          Account
        </TabsTrigger>
        <TabsTrigger value="notifications">
          <BellIcon data-icon="inline-start" />
          Notifications
        </TabsTrigger>
        <TabsTrigger value="analytics">
          <BarChart3Icon data-icon="inline-start" />
          Analytics
        </TabsTrigger>
      </TabsList>
      <TabsContent value="account" className="w-full pt-4">
        <div className="bg-muted/40 flex w-full items-center gap-3 rounded-lg border px-3 py-3">
          <span className="bg-muted flex size-9 shrink-0 items-center justify-center rounded-full text-xs font-medium">
            JD
          </span>
          <div className="min-w-0">
            <p className="truncate text-sm font-medium">Jane Doe</p>
            <p className="text-muted-foreground truncate text-xs">
              jane@acme.co
            </p>
          </div>
        </div>
      </TabsContent>
      <TabsContent value="notifications" className="w-full pt-4">
        <ul className="w-full space-y-2">
          <li className="flex items-center justify-between gap-3 rounded-lg border px-3 py-2.5">
            <span className="text-sm">Product updates</span>
            <span className="bg-primary size-4 rounded-full" aria-hidden />
          </li>
          <li className="flex items-center justify-between gap-3 rounded-lg border px-3 py-2.5">
            <span className="text-sm">Comments</span>
            <span className="bg-primary size-4 rounded-full" aria-hidden />
          </li>
          <li className="flex items-center justify-between gap-3 rounded-lg border px-3 py-2.5">
            <span className="text-sm">Marketing</span>
            <span className="bg-muted size-4 rounded-full" aria-hidden />
          </li>
        </ul>
      </TabsContent>
      <TabsContent value="analytics" className="w-full pt-4">
        <dl className="grid w-full grid-cols-2 gap-3">
          <div className="bg-muted/40 rounded-lg border px-3 py-3">
            <dt className="text-muted-foreground text-xs">Views</dt>
            <dd className="text-xl font-semibold tabular-nums">2.4k</dd>
          </div>
          <div className="bg-muted/40 rounded-lg border px-3 py-3">
            <dt className="text-muted-foreground text-xs">Conversion</dt>
            <dd className="text-xl font-semibold tabular-nums">3.8%</dd>
          </div>
        </dl>
      </TabsContent>
    </Tabs>
  )
}

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

Dependencies

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    932
  • Editorial Collage Hero

    Editorial Collage Hero

    431
  • 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