Toggle() — ui Function Reference
Architecture documentation for the Toggle() function in toggle.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 33069cb6_5f59_cc8f_370f_ac095ba34264["Toggle()"] 952e8f2e_f34f_2beb_88ae_7f67b84a0f43["toggle.tsx"] 33069cb6_5f59_cc8f_370f_ac095ba34264 -->|defined in| 952e8f2e_f34f_2beb_88ae_7f67b84a0f43 style 33069cb6_5f59_cc8f_370f_ac095ba34264 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/toggle.tsx lines 31–45
function Toggle({
className,
variant,
size,
...props
}: React.ComponentProps<typeof TogglePrimitive.Root> &
VariantProps<typeof toggleVariants>) {
return (
<TogglePrimitive.Root
data-slot="toggle"
className={cn(toggleVariants({ variant, size, className }))}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Toggle() do?
Toggle() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/toggle.tsx.
Where is Toggle() defined?
Toggle() is defined in apps/v4/registry/new-york-v4/ui/toggle.tsx at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free