IntegrationCard() — supabase Function Reference
Architecture documentation for the IntegrationCard() function in IntegrationCard.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Integrations/Landing/IntegrationCard.tsx lines 38–113
export const IntegrationCard = ({
id,
status,
name,
icon,
description,
isInstalled,
featured = false,
image,
}: IntegrationCardProps) => {
const { data: project } = useSelectedProjectQuery()
if (featured) {
return (
<Link href={`/project/${project?.ref}/integrations/${id}/overview`} className="h-full">
<Card className="h-full">
{/* Full-width image/icon at the top */}
<div className="w-full h-24 bg-surface-400 rounded-t-md flex items-center justify-center overflow-hidden relative">
{image ? (
<Image
fill
src={`${BASE_PATH}/${image}`}
alt={`${name} integration`}
className="w-full h-full object-cover invert dark:invert-0"
objectFit="cover"
/>
) : (
<div className="w-12 h-12 text-foreground relative">
{icon({ className: 'w-full h-full text-foreground' })}
</div>
)}
</div>
<CardContent className="p-6 px-4">
<div className="flex-col justify-start items-center text-center gap-y-0.5 flex">
<h3>{name}</h3>
<p className="text-foreground-light text-sm">{description}</p>
<div className="flex items-center gap-x-1 mt-4">
{status && <Badge variant="warning">{status}</Badge>}
<Badge>Official</Badge>
</div>
</div>
</CardContent>
</Card>
</Link>
)
}
return (
<Link href={`/project/${project?.ref}/integrations/${id}/overview`} className="h-full">
<Card className="h-full">
<CardContent className="flex flex-col p-4 @2xl:p-6 h-full">
<div className="flex items-start justify-between mb-4">
<div className="shrink-0 w-10 h-10 relative bg-white border rounded-md flex items-center justify-center">
{icon()}
</div>
{isInstalled && (
<div className="flex items-center gap-x-1">
<BadgeCheck size={14} className="text-brand-link" />
<span className="text-brand-link text-xs">Installed</span>
</div>
)}
</div>
<div className="flex-col justify-start items-start gap-y-0.5 flex flex-1">
<h3 className="text-foreground text-sm">{name}</h3>
<p className="text-foreground-light text-xs flex-1">{description}</p>
<div className="flex items-center gap-x-1 mt-4">
{status && <Badge variant="warning">{status}</Badge>}
<Badge>Official</Badge>
</div>
</div>
</CardContent>
</Card>
</Link>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free