Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Feedback

alert

Callout for short, important messages.

Installation

php artisan ui:add alert

Usage

<x-ui.alert title="Heads up!">
    You can add components to your app using the CLI.
</x-ui.alert>

<x-ui.alert variant="destructive" title="Payment failed">
    Your card was declined. Try another payment method.
</x-ui.alert>

Variants: default, destructive. Optional `icon` and `title`.

Props

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

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