Feedback.alert
Server-rendered
Renders an alert container.
Use named :title and :description slots for canonical structure.
All alert variants
Default
Heads up!
You can add components to your app using the install task.
Destructive
Unable to deploy
Your build failed. Check logs and try again.
Success
Changes saved
Your updates have been successfully saved to the server.
Warning
Deprecated API
This endpoint will be removed in the next major version.
Info
FYI
Additional information to help you understand the current situation.
<div class="space-y-4">
<div>
<h4 class="text-sm font-medium mb-2">Default</h4>
<.alert>
<.icon name="circle-alert" />
<:title>Heads up!</:title>
<:description>
You can add components to your app using the install task.
</:description>
</.alert>
</div>
<div>
<h4 class="text-sm font-medium mb-2">Destructive</h4>
<.alert variant={:destructive}>
<.icon name="triangle-alert" />
<:title>Unable to deploy</:title>
<:description>
Your build failed. Check logs and try again.
</:description>
</.alert>
</div>
<div>
<h4 class="text-sm font-medium mb-2">Success</h4>
<.alert variant={:success}>
<.icon name="circle-check-big" />
<:title>Changes saved</:title>
<:description>
Your updates have been successfully saved to the server.
</:description>
</.alert>
</div>
<div>
<h4 class="text-sm font-medium mb-2">Warning</h4>
<.alert variant={:warning}>
<.icon name="triangle-alert" />
<:title>Deprecated API</:title>
<:description>
This endpoint will be removed in the next major version.
</:description>
</.alert>
</div>
<div>
<h4 class="text-sm font-medium mb-2">Info</h4>
<.alert variant={:info}>
<.icon name="info" />
<:title>FYI</:title>
<:description>
Additional information to help you understand the current situation.
</:description>
</.alert>
</div>
</div>
Attributes
| Name | Type | Default | Values | Global Includes |
|---|---|---|---|---|
class
|
:string |
— | — | — |
id
|
:string |
— | — | — |
rest
|
:global |
— | — | — |
variant
|
:atom |
:default
|
:default
,
:destructive
,
:success
,
:warning
,
:info
|
— |
Slots
| Slot | Slot Attributes |
|---|---|
description
|
— |
inner_block
Required
|
— |
title
|
— |