mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 06:28:37 +00:00
* feat(www): add login blocks * chore(www): restructure for blocks * chore: build registry * chore: clean up chunks * fix(www): chart categories * feat(www): big registry refactor * feat(www): update blocks * feat: complex blocks * fix: update schema * feat: sync new-york and default * fix: lint * feat: move charts * fix(www): code * fix: src path * chore: rebuild registry * fix: screenshot * fix: set new-york as default
75 lines
2.3 KiB
TypeScript
75 lines
2.3 KiB
TypeScript
import { Button } from "@/registry/default/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardFooter,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/registry/default/ui/card"
|
|
import { Input } from "@/registry/default/ui/input"
|
|
import { Label } from "@/registry/default/ui/label"
|
|
import {
|
|
Tabs,
|
|
TabsContent,
|
|
TabsList,
|
|
TabsTrigger,
|
|
} from "@/registry/default/ui/tabs"
|
|
|
|
export default function TabsDemo() {
|
|
return (
|
|
<Tabs defaultValue="account" className="w-[400px]">
|
|
<TabsList className="grid w-full grid-cols-2">
|
|
<TabsTrigger value="account">Account</TabsTrigger>
|
|
<TabsTrigger value="password">Password</TabsTrigger>
|
|
</TabsList>
|
|
<TabsContent value="account">
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Account</CardTitle>
|
|
<CardDescription>
|
|
Make changes to your account here. Click save when you're done.
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent className="space-y-2">
|
|
<div className="space-y-1">
|
|
<Label htmlFor="name">Name</Label>
|
|
<Input id="name" defaultValue="Pedro Duarte" />
|
|
</div>
|
|
<div className="space-y-1">
|
|
<Label htmlFor="username">Username</Label>
|
|
<Input id="username" defaultValue="@peduarte" />
|
|
</div>
|
|
</CardContent>
|
|
<CardFooter>
|
|
<Button>Save changes</Button>
|
|
</CardFooter>
|
|
</Card>
|
|
</TabsContent>
|
|
<TabsContent value="password">
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Password</CardTitle>
|
|
<CardDescription>
|
|
Change your password here. After saving, you'll be logged out.
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent className="space-y-2">
|
|
<div className="space-y-1">
|
|
<Label htmlFor="current">Current password</Label>
|
|
<Input id="current" type="password" />
|
|
</div>
|
|
<div className="space-y-1">
|
|
<Label htmlFor="new">New password</Label>
|
|
<Input id="new" type="password" />
|
|
</div>
|
|
</CardContent>
|
|
<CardFooter>
|
|
<Button>Save password</Button>
|
|
</CardFooter>
|
|
</Card>
|
|
</TabsContent>
|
|
</Tabs>
|
|
)
|
|
}
|