Home / File/ toggle-demo.tsx — ui Source File

toggle-demo.tsx — ui Source File

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

File tsx DocumentationAtlas ContentSourcing 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  02549040_62fd_6b43_eff3_49af62c26f36["toggle-demo.tsx"]
  61901fff_e0e9_9e5b_700d_48033d37776d["toggle"]
  02549040_62fd_6b43_eff3_49af62c26f36 --> 61901fff_e0e9_9e5b_700d_48033d37776d
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  02549040_62fd_6b43_eff3_49af62c26f36 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 02549040_62fd_6b43_eff3_49af62c26f36 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Toggle } from "@/examples/radix/ui/toggle"
import { BookmarkIcon } from "lucide-react"

export function ToggleDemo() {
  return (
    <Toggle aria-label="Toggle bookmark" size="sm" variant="outline">
      <BookmarkIcon className="group-data-[state=on]/toggle:fill-foreground" />
      Bookmark
    </Toggle>
  )
}

Subdomains

Functions

Dependencies

  • lucide-react
  • toggle

Frequently Asked Questions

What does toggle-demo.tsx do?
toggle-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in toggle-demo.tsx?
toggle-demo.tsx defines 1 function(s): ToggleDemo.
What does toggle-demo.tsx depend on?
toggle-demo.tsx imports 2 module(s): lucide-react, toggle.
Where is toggle-demo.tsx in the architecture?
toggle-demo.tsx is located at apps/v4/examples/radix/toggle-demo.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free