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 { CodeIcon, EyeIcon } from 'lucide-react'

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

export function Tabs13() {
  return (
    <Tabs defaultValue="preview" className="w-full max-w-md items-center gap-4">
      <TabsList variant="line">
        <TabsTrigger value="preview">
          <EyeIcon data-icon="inline-start" />
          Preview
        </TabsTrigger>
        <TabsTrigger value="code">
          <CodeIcon data-icon="inline-start" />
          Code
        </TabsTrigger>
      </TabsList>
      <TabsContent value="preview" className="w-full">
        <div className="bg-muted/40 flex h-28 items-center justify-center rounded-md border">
          <span className="text-muted-foreground text-sm">Live preview</span>
        </div>
      </TabsContent>
      <TabsContent value="code" className="w-full">
        <pre className="bg-muted text-muted-foreground overflow-x-auto rounded-md border p-3 font-mono text-xs">
          {`<Button>Click me</Button>`}
        </pre>
      </TabsContent>
    </Tabs>
  )
}

export default function Default() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-10">
      <Tabs13 />
    </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

    342
  • Real Estate Search Hero

    Real Estate Search Hero

    190
  • Editorial Hero

    Editorial Hero

    173
  • Hero with Dashboard Mockup

    Hero with Dashboard Mockup

    123