Home / File/ sonner-position.tsx — ui Source File

sonner-position.tsx — ui Source File

Architecture documentation for sonner-position.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  111903fd_3703_08fe_ca52_59b9660babf3["sonner-position.tsx"]
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  111903fd_3703_08fe_ca52_59b9660babf3 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  e750d152_1191_1793_7244_99c7f9c595f4["sonner"]
  111903fd_3703_08fe_ca52_59b9660babf3 --> e750d152_1191_1793_7244_99c7f9c595f4
  style 111903fd_3703_08fe_ca52_59b9660babf3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Button } from "@/examples/base/ui/button"
import { toast } from "sonner"

export function SonnerPosition() {
  return (
    <div className="flex flex-wrap justify-center gap-2">
      <Button
        variant="outline"
        onClick={() =>
          toast("Event has been created", { position: "top-left" })
        }
      >
        Top Left
      </Button>
      <Button
        variant="outline"
        onClick={() =>
          toast("Event has been created", { position: "top-center" })
        }
      >
        Top Center
      </Button>
      <Button
        variant="outline"
        onClick={() =>
          toast("Event has been created", { position: "top-right" })
        }
      >
        Top Right
      </Button>
      <Button
        variant="outline"
        onClick={() =>
          toast("Event has been created", { position: "bottom-left" })
        }
      >
        Bottom Left
      </Button>
      <Button
        variant="outline"
        onClick={() =>
          toast("Event has been created", { position: "bottom-center" })
        }
      >
        Bottom Center
      </Button>
      <Button
        variant="outline"
        onClick={() =>
          toast("Event has been created", { position: "bottom-right" })
        }
      >
        Bottom Right
      </Button>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • button
  • sonner

Frequently Asked Questions

What does sonner-position.tsx do?
sonner-position.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in sonner-position.tsx?
sonner-position.tsx defines 1 function(s): SonnerPosition.
What does sonner-position.tsx depend on?
sonner-position.tsx imports 2 module(s): button, sonner.
Where is sonner-position.tsx in the architecture?
sonner-position.tsx is located at apps/v4/examples/base/sonner-position.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free