felipemenezes098

Flexnative Tabs

Cards 25

About

Additional tab patterns from the Flexnative UI registry, companion to flexnative-tabs: an account/password settings form in a card, vertical icon-with-title triggers, and a compact icon-only view switcher. Same tabs primitive (no Radix dependency).

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 { Button } from '@/components/ui/button'
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from '@/components/ui/card'
import { Field, FieldGroup, FieldLabel } from '@/components/ui/field'
import { Input } from '@/components/ui/input'
import {
  Tabs,
  TabsContent,
  TabsList,
  TabsTrigger,
} from '@/components/ui/flexnative-tabs-more'

export function Tabs11() {
  return (
    <Tabs defaultValue="account" className="w-full max-w-md gap-4">
      <TabsList className="w-full">
        <TabsTrigger value="account">Account</TabsTrigger>
        <TabsTrigger value="password">Password</TabsTrigger>
      </TabsList>
      <TabsContent value="account">
        <Card>
          <CardHeader>
            <CardTitle>Account</CardTitle>
            <CardDescription>
              Update your profile details. Click save when done.
            </CardDescription>
          </CardHeader>
          <CardContent>
            <FieldGroup>
              <Field>
                <FieldLabel htmlFor="tabs11-name">Name</FieldLabel>
                <Input id="tabs11-name" defaultValue="shadcn" />
              </Field>
              <Field>
                <FieldLabel htmlFor="tabs11-username">Username</FieldLabel>
                <Input id="tabs11-username" defaultValue="@shadcn" />
              </Field>
            </FieldGroup>
          </CardContent>
          <CardFooter>
            <Button>Save changes</Button>
          </CardFooter>
        </Card>
      </TabsContent>
      <TabsContent value="password">
        <Card>
          <CardHeader>
            <CardTitle>Password</CardTitle>
            <CardDescription>
              You will be signed out after changing your password.
            </CardDescription>
          </CardHeader>
          <CardContent>
            <FieldGroup>
              <Field>
                <FieldLabel htmlFor="tabs11-current">
                  Current password
                </FieldLabel>
                <Input id="tabs11-current" type="password" />
              </Field>
              <Field>
                <FieldLabel htmlFor="tabs11-new">New password</FieldLabel>
                <Input id="tabs11-new" type="password" />
              </Field>
            </FieldGroup>
          </CardContent>
          <CardFooter>
            <Button>Update password</Button>
          </CardFooter>
        </Card>
      </TabsContent>
    </Tabs>
  )
}

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

Dependencies

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Editorial Collage Hero

    Editorial Collage Hero

    517
  • Split Hero With Image Cards

    Split Hero With Image Cards

    471
  • Editorial Image Hero

    Editorial Image Hero

    435
  • Scroll 01

    Scroll 01

    418
  • Real Estate Search Hero

    Real Estate Search Hero

    229
  • Editorial Hero

    Editorial Hero

    210
  • Hero with Dashboard Mockup

    Hero with Dashboard Mockup

    147

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198