TableCellViewer() — ui Function Reference
Architecture documentation for the TableCellViewer() function in data-table.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD c100228b_0aea_4b25_cc91_09487d51d15b["TableCellViewer()"] d3cd7675_a22f_8fdf_eec9_5f6b6d751feb["data-table.tsx"] c100228b_0aea_4b25_cc91_09487d51d15b -->|defined in| d3cd7675_a22f_8fdf_eec9_5f6b6d751feb style c100228b_0aea_4b25_cc91_09487d51d15b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/blocks/dashboard-01/components/data-table.tsx lines 713–883
function TableCellViewer({ item }: { item: z.infer<typeof schema> }) {
const isMobile = useIsMobile()
return (
<Drawer direction={isMobile ? "bottom" : "right"}>
<DrawerTrigger asChild>
<Button variant="link" className="text-foreground w-fit px-0 text-left">
{item.header}
</Button>
</DrawerTrigger>
<DrawerContent>
<DrawerHeader className="gap-1">
<DrawerTitle>{item.header}</DrawerTitle>
<DrawerDescription>
Showing total visitors for the last 6 months
</DrawerDescription>
</DrawerHeader>
<div className="flex flex-col gap-4 overflow-y-auto px-4 text-sm">
{!isMobile && (
<>
<ChartContainer config={chartConfig}>
<AreaChart
accessibilityLayer
data={chartData}
margin={{
left: 0,
right: 10,
}}
>
<CartesianGrid vertical={false} />
<XAxis
dataKey="month"
tickLine={false}
axisLine={false}
tickMargin={8}
tickFormatter={(value) => value.slice(0, 3)}
hide
/>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent indicator="dot" />}
/>
<Area
dataKey="mobile"
type="natural"
fill="var(--color-mobile)"
fillOpacity={0.6}
stroke="var(--color-mobile)"
stackId="a"
/>
<Area
dataKey="desktop"
type="natural"
fill="var(--color-desktop)"
fillOpacity={0.4}
stroke="var(--color-desktop)"
stackId="a"
/>
</AreaChart>
</ChartContainer>
<Separator />
<div className="grid gap-2">
<div className="flex gap-2 leading-none font-medium">
Trending up by 5.2% this month{" "}
<IconPlaceholder
lucide="TrendingUpIcon"
tabler="IconTrendingUp"
hugeicons="ChartUpIcon"
phosphor="TrendUpIcon"
remixicon="RiArrowUpLine"
className="size-4"
/>
</div>
<div className="text-muted-foreground">
Showing total visitors for the last 6 months. This is just
some random text to test the layout. It spans multiple lines
and should wrap around.
</div>
</div>
<Separator />
</>
Domain
Subdomains
Source
Frequently Asked Questions
What does TableCellViewer() do?
TableCellViewer() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/dashboard-01/components/data-table.tsx.
Where is TableCellViewer() defined?
TableCellViewer() is defined in apps/v4/registry/bases/radix/blocks/dashboard-01/components/data-table.tsx at line 713.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free