Fields
Alert
Alert/callout box for displaying messages.
Alert/callout box for displaying messages.
use NyonCode\WireForms\Components\Display\Alert;
Usage
Alert::make('warning') ->title('Warning') ->message('This action cannot be undone.') ->warning() ->icon('exclamation') ->dismissible()
Color Helpers
Alert::make('x')->info() // blueAlert::make('x')->success() // greenAlert::make('x')->warning() // yellowAlert::make('x')->danger() // redAlert::make('x')->color('primary') // explicit color
Methods
| Method | Description |
|---|---|
title(string) |
Alert title |
message(string) / content(string) |
Alert body |
icon(string) |
Icon name |
color(string) |
Alert color |
info() / success() / warning() / danger() |
Color shortcuts |
dismissible() |
Allow dismissing |