theme-wrapper.tsx — ui Source File
Architecture documentation for theme-wrapper.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 22e977b4_653d_3542_de03_80df2f532c42["theme-wrapper.tsx"] 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 22e977b4_653d_3542_de03_80df2f532c42 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 8c6845ea_e0db_55db_4a65_df2f64d9e581["use-config"] 22e977b4_653d_3542_de03_80df2f532c42 --> 8c6845ea_e0db_55db_4a65_df2f64d9e581 style 22e977b4_653d_3542_de03_80df2f532c42 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { cn } from "@/lib/utils"
import { useConfig } from "@/hooks/use-config"
interface ThemeWrapperProps extends React.ComponentProps<"div"> {
defaultTheme?: string
}
export function ThemeWrapper({
defaultTheme,
children,
className,
}: ThemeWrapperProps) {
const [config] = useConfig()
return (
<div
className={cn(
`theme-${defaultTheme || config.theme}`,
"w-full",
className
)}
style={
{
"--radius": `${defaultTheme ? 0.5 : config.radius}rem`,
} as React.CSSProperties
}
>
{children}
</div>
)
}
Domain
Subdomains
Functions
Types
Dependencies
- use-config
- utils
Source
Frequently Asked Questions
What does theme-wrapper.tsx do?
theme-wrapper.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in theme-wrapper.tsx?
theme-wrapper.tsx defines 1 function(s): ThemeWrapper.
What does theme-wrapper.tsx depend on?
theme-wrapper.tsx imports 2 module(s): use-config, utils.
Where is theme-wrapper.tsx in the architecture?
theme-wrapper.tsx is located at deprecated/www/components/theme-wrapper.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free