Home / Function/ DemoCookieSettings() — ui Function Reference

DemoCookieSettings() — ui Function Reference

Architecture documentation for the DemoCookieSettings() function in cookie-settings.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  d67f12b2_e869_1f93_9b9c_f2228a0ec2aa["DemoCookieSettings()"]
  a3540ceb_2844_8613_0db0_875b37744ad4["cookie-settings.tsx"]
  d67f12b2_e869_1f93_9b9c_f2228a0ec2aa -->|defined in| a3540ceb_2844_8613_0db0_875b37744ad4
  style d67f12b2_e869_1f93_9b9c_f2228a0ec2aa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/app/(app)/examples/cards/components/cookie-settings.tsx lines 15–60

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

Frequently Asked Questions

What does DemoCookieSettings() do?
DemoCookieSettings() is a function in the ui codebase, defined in deprecated/www/app/(app)/examples/cards/components/cookie-settings.tsx.
Where is DemoCookieSettings() defined?
DemoCookieSettings() is defined in deprecated/www/app/(app)/examples/cards/components/cookie-settings.tsx at line 15.

Analyze Your Own Codebase

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

Try Supermodel Free