Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Layout

card

Container with header, content, and footer slots.

Create project

Deploy your new project in one click.

Name, framework, and region are configured automatically.

Installation

php artisan ui:add card

Usage

<x-ui.card title="Create project"
    description="Deploy your new project in one click.">
    <p class="text-sm text-muted-foreground">Card content goes here.</p>
    <x-slot:footer>
        <x-ui.button>Deploy</x-ui.button>
    </x-slot:footer>
</x-ui.card>

Slots: header, footer; or props title/description.

Props

Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.

@props([
    'title' => null,
    'description' => null,
])