snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
82
apps/v4/examples/aria/tabs-demo.tsx
Normal file
82
apps/v4/examples/aria/tabs-demo.tsx
Normal file
@@ -0,0 +1,82 @@
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/styles/aria-nova/ui/card"
|
||||
import {
|
||||
Tabs,
|
||||
TabsContent,
|
||||
TabsList,
|
||||
TabsTrigger,
|
||||
} from "@/styles/aria-nova/ui/tabs"
|
||||
|
||||
export function TabsDemo() {
|
||||
return (
|
||||
<Tabs defaultSelectedKey="overview" className="w-[400px]">
|
||||
<TabsList>
|
||||
<TabsTrigger id="overview">Overview</TabsTrigger>
|
||||
<TabsTrigger id="analytics">Analytics</TabsTrigger>
|
||||
<TabsTrigger id="reports">Reports</TabsTrigger>
|
||||
<TabsTrigger id="settings">Settings</TabsTrigger>
|
||||
</TabsList>
|
||||
<TabsContent id="overview">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Overview</CardTitle>
|
||||
<CardDescription>
|
||||
View your key metrics and recent project activity. Track progress
|
||||
across all your active projects.
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="text-sm text-muted-foreground">
|
||||
You have 12 active projects and 3 pending tasks.
|
||||
</CardContent>
|
||||
</Card>
|
||||
</TabsContent>
|
||||
<TabsContent id="analytics">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Analytics</CardTitle>
|
||||
<CardDescription>
|
||||
Track performance and user engagement metrics. Monitor trends and
|
||||
identify growth opportunities.
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="text-sm text-muted-foreground">
|
||||
Page views are up 25% compared to last month.
|
||||
</CardContent>
|
||||
</Card>
|
||||
</TabsContent>
|
||||
<TabsContent id="reports">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Reports</CardTitle>
|
||||
<CardDescription>
|
||||
Generate and download your detailed reports. Export data in
|
||||
multiple formats for analysis.
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="text-sm text-muted-foreground">
|
||||
You have 5 reports ready and available to export.
|
||||
</CardContent>
|
||||
</Card>
|
||||
</TabsContent>
|
||||
<TabsContent id="settings">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Settings</CardTitle>
|
||||
<CardDescription>
|
||||
Manage your account preferences and options. Customize your
|
||||
experience to fit your needs.
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="text-sm text-muted-foreground">
|
||||
Configure notifications, security, and themes.
|
||||
</CardContent>
|
||||
</Card>
|
||||
</TabsContent>
|
||||
</Tabs>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user