toggle-example.tsx — ui Source File
Architecture documentation for toggle-example.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 732d07fe_4126_27b7_8a89_b8f9929b69b4["toggle-example.tsx"] da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"] 732d07fe_4126_27b7_8a89_b8f9929b69b4 --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a 381135fe_5f7a_910a_b8a2_691e9756a016["button"] 732d07fe_4126_27b7_8a89_b8f9929b69b4 --> 381135fe_5f7a_910a_b8a2_691e9756a016 74da6c56_ce56_ff7d_d9b0_dd194fe8cf0b["toggle"] 732d07fe_4126_27b7_8a89_b8f9929b69b4 --> 74da6c56_ce56_ff7d_d9b0_dd194fe8cf0b de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 732d07fe_4126_27b7_8a89_b8f9929b69b4 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 732d07fe_4126_27b7_8a89_b8f9929b69b4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Example,
ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import { Button } from "@/registry/bases/radix/ui/button"
import { Toggle } from "@/registry/bases/radix/ui/toggle"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export default function ToggleExample() {
return (
<ExampleWrapper>
<ToggleBasic />
<ToggleOutline />
<ToggleSizes />
<ToggleWithButtonText />
<ToggleWithButtonIcon />
<ToggleWithButtonIconText />
<ToggleDisabled />
<ToggleWithIcon />
</ExampleWrapper>
)
}
function ToggleBasic() {
return (
<Example title="Basic">
<div className="flex flex-wrap items-center gap-2">
<Toggle aria-label="Toggle bold" defaultPressed>
<IconPlaceholder
lucide="BoldIcon"
tabler="IconBold"
hugeicons="TextBoldIcon"
phosphor="TextBIcon"
remixicon="RiBold"
/>
</Toggle>
<Toggle aria-label="Toggle italic">
<IconPlaceholder
lucide="ItalicIcon"
tabler="IconItalic"
hugeicons="TextItalicIcon"
phosphor="TextItalicIcon"
remixicon="RiItalic"
/>
</Toggle>
<Toggle aria-label="Toggle underline">
<IconPlaceholder
lucide="UnderlineIcon"
tabler="IconUnderline"
hugeicons="TextUnderlineIcon"
phosphor="TextUnderlineIcon"
remixicon="RiUnderline"
/>
</Toggle>
</div>
</Example>
)
}
function ToggleOutline() {
// ... (279 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- example
- icon-placeholder
- toggle
Source
Frequently Asked Questions
What does toggle-example.tsx do?
toggle-example.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in toggle-example.tsx?
toggle-example.tsx defines 9 function(s): ToggleBasic, ToggleDisabled, ToggleExample, ToggleOutline, ToggleSizes, ToggleWithButtonIcon, ToggleWithButtonIconText, ToggleWithButtonText, ToggleWithIcon.
What does toggle-example.tsx depend on?
toggle-example.tsx imports 4 module(s): button, example, icon-placeholder, toggle.
Where is toggle-example.tsx in the architecture?
toggle-example.tsx is located at apps/v4/registry/bases/radix/examples/toggle-example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free