OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone, forever free.
import React from "react";
import type { LucideIcon } from "lucide-react";
// Hatch shell holding one card: icon well, title, short body, optional footer (a link or a pill).
export default function IconCard({ icon: Icon, title, children, footer }: { icon: LucideIcon; title: string; children: React.ReactNode; footer?: React.ReactNode }) {
return (
<div className="hatch">
<div className="card flex h-full flex-col gap-3 p-5">
<span className="bento-ico size-9 bg-brand-soft text-brand-ink"><Icon className="size-[18px]" /></span>
<h3 className="text-[16px] font-bold tracking-[-0.02em]">{title}</h3>
<div className="text-[14px] leading-relaxed text-muted-foreground">{children}</div>
{footer && <div className="mt-auto pt-1">{footer}</div>}
</div>
</div>
);
}