Skip to main content
The Card component is the primary container used throughout Shopper to group related content. It provides a consistent visual treatment with a subtle border and background.

Preview

Usage

Props

string | Slot
default:"null"
The card header title. Can be a string or a slot for custom content.
string
default:"null"
Optional description text displayed below the title.

Examples

Basic Card

Card with Title Only

Card with Custom Title Slot

You can pass a custom slot for the title to include additional elements:

Card with Form Content

Blade Component Source

The Card component is located at packages/admin/resources/views/components/card.blade.php: