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, 1 dependents.

File tsx ComponentRegistry UIPrimitives 4 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  a3540ceb_2844_8613_0db0_875b37744ad4["cookie-settings.tsx"]
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  a3540ceb_2844_8613_0db0_875b37744ad4 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  a3540ceb_2844_8613_0db0_875b37744ad4 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  a3540ceb_2844_8613_0db0_875b37744ad4 --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  792bdb4b_081b_acca_8721_dff659e00c59["switch"]
  a3540ceb_2844_8613_0db0_875b37744ad4 --> 792bdb4b_081b_acca_8721_dff659e00c59
  72f1b829_240b_a010_b4ad_dfef30ded6bf["page.tsx"]
  72f1b829_240b_a010_b4ad_dfef30ded6bf --> a3540ceb_2844_8613_0db0_875b37744ad4
  style a3540ceb_2844_8613_0db0_875b37744ad4 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 DemoCookieSettings() {
  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-2">
          <Label htmlFor="necessary" className="flex flex-col space-y-1">
            <span>Strictly Necessary</span>
            <span className="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 />
        </div>
        <div className="flex items-center justify-between space-x-2">
          <Label htmlFor="functional" className="flex flex-col space-y-1">
            <span>Functional Cookies</span>
            <span className="font-normal leading-snug text-muted-foreground">
              These cookies allow the website to provide personalized
              functionality.
            </span>
          </Label>
          <Switch id="functional" />
        </div>
        <div className="flex items-center justify-between space-x-2">
          <Label htmlFor="performance" className="flex flex-col space-y-1">
            <span>Performance Cookies</span>
            <span className="font-normal leading-snug text-muted-foreground">
              These cookies help to improve the performance of the website.
            </span>
          </Label>
          <Switch id="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): DemoCookieSettings.
What does cookie-settings.tsx depend on?
cookie-settings.tsx imports 4 module(s): button, card, label, switch.
What files import cookie-settings.tsx?
cookie-settings.tsx is imported by 1 file(s): page.tsx.
Where is cookie-settings.tsx in the architecture?
cookie-settings.tsx is located at deprecated/www/app/(app)/examples/cards/components/cookie-settings.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/app/(app)/examples/cards/components).

Analyze Your Own Codebase

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

Try Supermodel Free