mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +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
61 lines
2.2 KiB
TypeScript
61 lines
2.2 KiB
TypeScript
"use client"
|
|
|
|
import { Button } from "@/registry/new-york/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardFooter,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/registry/new-york/ui/card"
|
|
import { Label } from "@/registry/new-york/ui/label"
|
|
import { Switch } from "@/registry/new-york/ui/switch"
|
|
|
|
export function CardsCookieSettings() {
|
|
return (
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Cookie Settings</CardTitle>
|
|
<CardDescription>Manage your cookie settings here.</CardDescription>
|
|
</CardHeader>
|
|
<CardContent className="grid gap-6">
|
|
<div className="flex items-center justify-between space-x-4">
|
|
<Label htmlFor="necessary" className="flex flex-col space-y-1">
|
|
<span>Strictly Necessary</span>
|
|
<span className="text-xs font-normal leading-snug text-muted-foreground">
|
|
These cookies are essential in order to use the website and use
|
|
its features.
|
|
</span>
|
|
</Label>
|
|
<Switch id="necessary" defaultChecked aria-label="Necessary" />
|
|
</div>
|
|
<div className="flex items-center justify-between space-x-4">
|
|
<Label htmlFor="functional" className="flex flex-col space-y-1">
|
|
<span>Functional Cookies</span>
|
|
<span className="text-xs font-normal leading-snug text-muted-foreground">
|
|
These cookies allow the website to provide personalized
|
|
functionality.
|
|
</span>
|
|
</Label>
|
|
<Switch id="functional" aria-label="Functional" />
|
|
</div>
|
|
<div className="flex items-center justify-between space-x-4">
|
|
<Label htmlFor="performance" className="flex flex-col space-y-1">
|
|
<span>Performance Cookies</span>
|
|
<span className="text-xs font-normal leading-snug text-muted-foreground">
|
|
These cookies help to improve the performance of the website.
|
|
</span>
|
|
</Label>
|
|
<Switch id="performance" aria-label="Performance" />
|
|
</div>
|
|
</CardContent>
|
|
<CardFooter>
|
|
<Button variant="outline" className="w-full">
|
|
Save preferences
|
|
</Button>
|
|
</CardFooter>
|
|
</Card>
|
|
)
|
|
}
|