Home / Function/ DemoNotifications() — ui Function Reference

DemoNotifications() — ui Function Reference

Architecture documentation for the DemoNotifications() function in notifications.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  582f4fe4_6339_37d4_6270_81b8668c8675["DemoNotifications()"]
  eafe3e81_63b8_26f4_88f6_e139c75b865c["notifications.tsx"]
  582f4fe4_6339_37d4_6270_81b8668c8675 -->|defined in| eafe3e81_63b8_26f4_88f6_e139c75b865c
  style 582f4fe4_6339_37d4_6270_81b8668c8675 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/app/(app)/examples/cards/components/notifications.tsx lines 11–51

export function DemoNotifications() {
  return (
    <Card>
      <CardHeader className="pb-3">
        <CardTitle>Notifications</CardTitle>
        <CardDescription>
          Choose what you want to be notified about.
        </CardDescription>
      </CardHeader>
      <CardContent className="grid gap-1">
        <div className="-mx-2 flex items-start space-x-4 rounded-md p-2 transition-all hover:bg-accent hover:text-accent-foreground">
          <Bell className="mt-px h-5 w-5" />
          <div className="space-y-1">
            <p className="text-sm font-medium leading-none">Everything</p>
            <p className="text-sm text-muted-foreground">
              Email digest, mentions & all activity.
            </p>
          </div>
        </div>
        <div className="-mx-2 flex items-start space-x-4 rounded-md bg-accent p-2 text-accent-foreground transition-all">
          <User className="mt-px h-5 w-5" />
          <div className="space-y-1">
            <p className="text-sm font-medium leading-none">Available</p>
            <p className="text-sm text-muted-foreground">
              Only mentions and comments.
            </p>
          </div>
        </div>
        <div className="-mx-2 flex items-start space-x-4 rounded-md p-2 transition-all hover:bg-accent hover:text-accent-foreground">
          <EyeOff className="mt-px h-5 w-5" />
          <div className="space-y-1">
            <p className="text-sm font-medium leading-none">Ignoring</p>
            <p className="text-sm text-muted-foreground">
              Turn off all notifications.
            </p>
          </div>
        </div>
      </CardContent>
    </Card>
  )
}

Subdomains

Frequently Asked Questions

What does DemoNotifications() do?
DemoNotifications() is a function in the ui codebase, defined in deprecated/www/app/(app)/examples/cards/components/notifications.tsx.
Where is DemoNotifications() defined?
DemoNotifications() is defined in deprecated/www/app/(app)/examples/cards/components/notifications.tsx at line 11.

Analyze Your Own Codebase

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

Try Supermodel Free