Anatomy
Usage
Cards are composed using <Card>
, <CardHeader>
, <CardTitle>
, <CardDescription>
, <CardContent>
, and <CardFooter>
.
This is a card title
A brief description of the card.
Replace Me
Replace Me
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.
API Reference
Card
Inherits properties from HTMLElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
type | "default" "linked" | "default" |
CardHeader
Inherits properties from HTMLElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode |
CardTitle
Inherits properties from HTMLElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode |
CardDescription
Inherits properties from HTMLElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode |
CardContent
Inherits properties from HTMLElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode |
CardFooter
Inherits properties from HTMLElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode |