Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Overlays

sheet

Panel that slides in from an edge of the screen.

Edit profile

Make changes to your profile here. Click save when you're done.

Installation

php artisan ui:add sheet

Usage

<x-ui.sheet side="right" title="Edit profile" description="Update your details.">
    <x-slot:trigger>
        <x-ui.button variant="outline">Open</x-ui.button>
    </x-slot:trigger>

    <div class="px-4">Body content…</div>

    <x-slot:footer>
        <x-ui.button>Save changes</x-ui.button>
    </x-slot:footer>
</x-ui.sheet>

Built on the native <dialog> element (top layer, focus trap, Esc to close) plus a small inline <script>; no JS dependencies. The `trigger` slot opens the sheet; set `side` to top|right|bottom|left (default right). Optional `title`, `description` props and a `footer` slot.

Props

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

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