Skip to main content

Card
component

A composable component with header, content, and footer sections for displaying grouped information. You can view the Storybook for more interactive examples.

Was this section helpful?

Card

import {Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent} from '@shopify/shop-minis-react'

export default function MyComponent() {
return (
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card description goes here</CardDescription>
</CardHeader>
<CardContent>
<p>This is the main content of the card.</p>
</CardContent>
<CardFooter>
<p>Card footer content</p>
</CardFooter>
</Card>
)
}

Preview

Card structure and components

A complete card with header, content, and footer sections

Was this section helpful?

Full card structure

import {Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent} from '@shopify/shop-minis-react'

export default function MyComponent() {
return (
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card description goes here</CardDescription>
</CardHeader>
<CardContent>
<p>This is the main content of the card.</p>
</CardContent>
<CardFooter>
<p>Card footer content</p>
</CardFooter>
</Card>
)
}