LegendItem() — supabase Function Reference
Architecture documentation for the LegendItem() function in DiskSpaceBar.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx lines 251–279
const LegendItem = ({
name,
description,
color,
size,
}: {
name: string
description: string
color: string
size: number
}) => (
<Tooltip>
<TooltipTrigger asChild>
<div className="flex items-center hover:cursor-help z-10">
<div className={cn('w-2 h-2 rounded-full mr-2', color)} />
<span>{name}</span>
</div>
</TooltipTrigger>
<TooltipContent side="bottom" className="flex flex-col gap-y-1 max-w-xs">
<div className="flex items-center">
<div className={cn('w-2 h-2 rounded-full mr-2', color)} />
<span>
{name} - {formatBytes(size, 2, 'GB')}
</span>
</div>
<p>{description}</p>
</TooltipContent>
</Tooltip>
)
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free