felipemenezes098

Flexnative Tabs

Pricing 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 { Badge } from '@/components/ui/badge'
import {
  Tabs,
  TabsContent,
  TabsList,
  TabsTrigger,
} from '@/components/ui/flexnative-tabs'

export function Tabs14() {
  return (
    <Tabs defaultValue="yearly" className="w-full max-w-sm items-center gap-6">
      <TabsList className="w-full">
        <TabsTrigger value="monthly">Monthly</TabsTrigger>
        <TabsTrigger value="yearly">
          Yearly
          <Badge variant="secondary">−20%</Badge>
        </TabsTrigger>
      </TabsList>
      <TabsContent value="monthly" className="text-center">
        <div className="flex items-baseline justify-center gap-1">
          <span className="text-3xl font-semibold">$12</span>
          <span className="text-muted-foreground text-sm">/ month</span>
        </div>
        <p className="text-muted-foreground mt-1 text-sm">
          Billed monthly. Cancel anytime.
        </p>
      </TabsContent>
      <TabsContent value="yearly" className="text-center">
        <div className="flex items-baseline justify-center gap-1">
          <span className="text-3xl font-semibold">$115</span>
          <span className="text-muted-foreground text-sm">/ year</span>
        </div>
        <p className="text-muted-foreground mt-1 text-sm">
          Two months free vs monthly billing.
        </p>
      </TabsContent>
    </Tabs>
  )
}

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

Dependencies

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    968
  • Editorial Collage Hero

    Editorial Collage Hero

    458
  • Split Hero With Image Cards

    Split Hero With Image Cards

    412
  • Editorial Image Hero

    Editorial Image Hero

    393
  • Scroll 01

    Scroll 01

    363
  • Real Estate Search Hero

    Real Estate Search Hero

    197
  • Editorial Hero

    Editorial Hero

    178
  • Hero with Dashboard Mockup

    Hero with Dashboard Mockup

    127

More in Pricing

View all
  • Pricing Section

    Pricing Section

    606
  • pricing section

    pricing section

    166
  • Pricing Section

    Pricing Section

    180
  • Pricing Card

    Pricing Card

    372
  • RuixenPricing05

    RuixenPricing05

    103
  • Pricing Cards

    Pricing Cards

    17
  • Boxly Pricing-1

    Boxly Pricing-1

    90
  • Colorful-Pricing

    Colorful-Pricing

    86