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>
Et impedit aliquid.
new

Et impedit aliquid.

ID: 1
Author: Nathanial Blick
Voluptatem mollitia et temporibus quia sit et tempora aperiam. Perferendis quia eos illo eum maxime possimus nulla eos. Sit odio minus recusandae magnam exercitationem.

# 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 qui sit.

20.02.2026
In qui sit.
ID: 1
Author: Prof. Dallin Greenfelder IV
Velit nostrum est modi magni quis dolor alias. Ut maiores porro enim perspiciatis quis quia et. Omnis modi necessitatibus est molestias quis quia iure. Et modi alias non fugiat alias voluptatum nemo.