Card
A white box with a title, a few lines of text and a link.
A white box with a title, a few lines of text and a link.
npm install @heroui/react lucide-react
First time with HeroUI? Set it up once.
/**
* Demo from HeroUI, https://heroui.com (docs example card/default.tsx).
* Apache-2.0, Copyright 2025 NextUI Inc. Full text: https://github.com/heroui-inc/heroui/blob/main/LICENSE
* Changed for Tastebud: a default export (HeroUI's docs use named ones); lucide-react icons instead of
* @gravity-ui/icons; full width up to 400px, so it fits a phone.
*/
import {CircleDollarSign} from "lucide-react";
import {Card, Link} from "@heroui/react";
export default function CardDemo() {
return (
<Card className="w-full max-w-[400px]">
<CircleDollarSign aria-label="Dollar sign icon" className="text-primary size-6" role="img" />
<Card.Header>
<Card.Title>Become an Acme Creator!</Card.Title>
<Card.Description>
Visit the Acme Creator Hub to sign up today and start earning credits from your fans and
followers.
</Card.Description>
</Card.Header>
<Card.Footer>
<Link
aria-label="Go to Acme Creator Hub (opens in new tab)"
className="text-sm"
href="https://heroui.com"
rel="noopener noreferrer"
target="_blank"
>
Creator Hub
<Link.Icon aria-hidden="true" />
</Link>
</Card.Footer>
</Card>
);
}
Changed for this site: A default export (HeroUI's docs use named ones); lucide-react icons instead of @gravity-ui/icons; full width up to 400px, so it fits a phone.