Home / File/ cookie-settings.tsx — ui Source File

cookie-settings.tsx — ui Source File

Architecture documentation for cookie-settings.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx ComponentRegistry UIPrimitives 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  70d38120_2d41_26ac_d022_5e1dd084c2bb["cookie-settings.tsx"]
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  70d38120_2d41_26ac_d022_5e1dd084c2bb --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  70d38120_2d41_26ac_d022_5e1dd084c2bb --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  70d38120_2d41_26ac_d022_5e1dd084c2bb --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  792bdb4b_081b_acca_8721_dff659e00c59["switch"]
  70d38120_2d41_26ac_d022_5e1dd084c2bb --> 792bdb4b_081b_acca_8721_dff659e00c59
  style 70d38120_2d41_26ac_d022_5e1dd084c2bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

Subdomains

Dependencies

  • button
  • card
  • label
  • switch

Frequently Asked Questions

What does cookie-settings.tsx do?
cookie-settings.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in cookie-settings.tsx?
cookie-settings.tsx defines 1 function(s): CardsCookieSettings.
What does cookie-settings.tsx depend on?
cookie-settings.tsx imports 4 module(s): button, card, label, switch.
Where is cookie-settings.tsx in the architecture?
cookie-settings.tsx is located at deprecated/www/components/cards/cookie-settings.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/components/cards).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free