# Account and password

> Two-tab card with a profile edit form on one tab and a password change form on the other.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/tabs-11).

- Page, with a live preview: https://shadcn.exchange/r/flx/tabs-11
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/tabs-11-light-29aa156e883b1ec5.png
- Registry item: https://ui.flexnative.com/r/tabs-11.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/tabs-11.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `tabs`, `card`, `button`, `input`, `field`

## Files

### `registry/patterns/tabs/tabs-11.tsx`

```tsx
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/tabs'

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>
  )
}
```
