Card
A block element used to group related content.
Cards are composed using <Card>.
Replace Me
import { Card } from "stylus-ui/Card";
export default () => ( <Card> <div className="align-center flex h-24 w-60 items-center justify-center rounded border border-dashed border-slate-300 text-sm font-medium text-slate-500 dark:border-slate-600 dark:text-slate-400"> Replace Me </div> </Card>);Linked cards
Section titled “Linked cards”To display hover styles, change the card type to linked. You will still need to wrap the card in <Link> from next/link, or a plain <a> tag.
import Link from "next/link";import { Card } from "stylus-ui/Card";
export default () => ( <Link href="#linked-cards"> <Card type="linked">This is a clickable card</Card> </Link>);API Reference
Section titled “API Reference”Inherits properties from HTMLElement.