SingleAttributeTooltipContent() — supabase Function Reference
Architecture documentation for the SingleAttributeTooltipContent() function in UsageChartTooltips.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx lines 14–34
export const SingleAttributeTooltipContent = ({
name,
unit,
value,
isAfterToday,
tooltipFormatter,
}: SingleAttributeTooltipContentProps) => {
const formattedValue = unit === 'percentage' ? Number(value).toFixed(2) : Number(value)
return (
<>
<p className="text-xs text-foreground-light">{name}</p>
{isAfterToday ? (
<p className="text-foreground-light text-lg">No data yet</p>
) : (
<p className="text-xl">
{tooltipFormatter !== undefined ? tooltipFormatter(formattedValue) : formattedValue}
</p>
)}
</>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free