component-preview-tabs.tsx — ui Source File
Architecture documentation for component-preview-tabs.tsx, a tsx file in the ui codebase. 10 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391["component-preview-tabs.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 ba3d44f3_7b34_f9cc_6283_44817785c0df["link"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> ba3d44f3_7b34_f9cc_6283_44817785c0df a3e47561_21be_d5cd_a896_ddf369cf7b61["popover"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> a3e47561_21be_d5cd_a896_ddf369cf7b61 39a0d62e_8e7d_d097_eb95_91d2bca361f7["icons-react"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> 39a0d62e_8e7d_d097_eb95_91d2bca361f7 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c e353cccb_60a2_63df_b3fe_825e57b8087c["direction"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> e353cccb_60a2_63df_b3fe_825e57b8087c a931368b_960b_bc48_ede4_b09eed3e7b37["direction"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> a931368b_960b_bc48_ede4_b09eed3e7b37 57e86e45_ac6e_7278_be08_9092724e8401["button"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> 57e86e45_ac6e_7278_be08_9092724e8401 b2c60dee_4ede_8485_a6b4_91c999cdc69f["separator"] 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 --> b2c60dee_4ede_8485_a6b4_91c999cdc69f style 4f013dc0_9743_fe6f_61c3_b1ba0cbcf391 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import Link from "next/link"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/examples/base/ui/popover"
import { IconAlertCircle } from "@tabler/icons-react"
import { cn } from "@/lib/utils"
import {
LanguageProvider,
LanguageSelector,
useLanguageContext,
useTranslation,
type Translations,
} from "@/components/language-selector"
import { DirectionProvider as BaseDirectionProvider } from "@/registry/bases/base/ui/direction"
import { DirectionProvider as RadixDirectionProvider } from "@/registry/bases/radix/ui/direction"
import { Button } from "@/registry/new-york-v4/ui/button"
import { Separator } from "@/registry/new-york-v4/ui/separator"
export function ComponentPreviewTabs({
className,
previewClassName,
align = "center",
hideCode = false,
chromeLessOnMobile = false,
component,
source,
sourcePreview,
direction = "ltr",
styleName,
...props
}: React.ComponentProps<"div"> & {
previewClassName?: string
align?: "center" | "start" | "end"
hideCode?: boolean
chromeLessOnMobile?: boolean
component: React.ReactNode
source: React.ReactNode
sourcePreview?: React.ReactNode
direction?: "ltr" | "rtl"
styleName?: string
}) {
const [isMobileCodeVisible, setIsMobileCodeVisible] = React.useState(false)
const base = styleName?.split("-")[0]
return (
<div
data-slot="component-preview"
className={cn(
"group relative mt-4 mb-12 flex flex-col overflow-hidden rounded-xl border",
className
)}
{...props}
>
{direction === "rtl" ? (
// ... (208 more lines)
Domain
Subdomains
Dependencies
- button
- direction
- direction
- icons-react
- language-selector
- link
- popover
- react
- separator
- utils
Source
Frequently Asked Questions
What does component-preview-tabs.tsx do?
component-preview-tabs.tsx is a source file in the ui codebase, written in tsx. It belongs to the Internationalization domain, RTLLayout subdomain.
What functions are defined in component-preview-tabs.tsx?
component-preview-tabs.tsx defines 4 function(s): ComponentPreviewTabs, DirectionProviderWrapper, PreviewWrapper, RtlLanguageSelector.
What does component-preview-tabs.tsx depend on?
component-preview-tabs.tsx imports 10 module(s): button, direction, direction, icons-react, language-selector, link, popover, react, and 2 more.
Where is component-preview-tabs.tsx in the architecture?
component-preview-tabs.tsx is located at apps/v4/components/component-preview-tabs.tsx (domain: Internationalization, subdomain: RTLLayout, directory: apps/v4/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free