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

Card TitleThis is a description that explains what this card contains.

Your content goes here. This could be forms, tables, or any other content.

Usage

Props

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

Examples

Basic Card

A simple card without title or description.

Card with Title Only

Product Information

Display product details in an organized manner.

Card with Custom Title Slot

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

Card with Form Content

Account SettingsUpdate your account information below.

Blade Component Source

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