Card

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

# Basics

To create cards in the admin panel, use the moonshine::card component

<x-moonshine::card
url="#"
thumbnail="/images/image_1.jpg"
:title="fake()->sentence(3)"
:subtitle="date('d.m.Y')"
:values="['ID' => 1, 'Author' => fake()->name()]"
>
<x-slot:header>
<x-moonshine::badge color="green">new</x-moonshine::badge>
</x-slot:header>
 
{{ fake()->text() }}
 
<x-slot:actions>
<x-moonshine::link href="#">Read more</x-moonshine::link>
</x-slot:actions>
</x-moonshine::card>
Doloribus labore ratione aut.
new

Doloribus labore ratione aut.

ID: 1
Author: Ali Yost MD
Qui veniam optio eos rerum numquam. Voluptas porro et officiis qui sunt sunt in. Placeat voluptatum dolorum laboriosam labore occaecati. Aliquid dolorem ea et eum.

# Overlay view

The overlay view is available for the card

<x-moonshine::card
url="#"
:overlay="true"
thumbnail="/images/image_1.jpg"
:title="fake()->sentence(3)"
:subtitle="date('d.m.Y')"
:values="['ID' => 1, 'Author' => fake()->name()]"
>
<x-slot:header>
<x-moonshine::badge color="green">new</x-moonshine::badge>
</x-slot:header>
 
{{ fake()->text() }}
 
<x-slot:actions>
<x-moonshine::link href="#">Read more</x-moonshine::link>
</x-slot:actions>
</x-moonshine::card>
new

In mollitia.

12.03.2026
In mollitia.
ID: 1
Author: Sage Murray
Deserunt quae aut suscipit nesciunt illo repellendus nostrum. Fuga aliquid iure quia minus qui. Velit ea asperiores aliquam omnis.