x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<div class="flex flex-col gap-4 max-w-lg"> <div role="alert" aria-live="assertive" aria-atomic="true" class="relative w-full rounded-md border p-4 flex items-start gap-3 [&>i]:translate-y-0.5 [&>i]:shrink-0 bg-sky-50 text-sky-800 border-sky-300 dark:bg-sky-950/30 dark:text-sky-200 dark:border-sky-800"> <i data-lucide="info" class="inline-block w-4 h-4 shrink-0" aria-hidden="true"></i> <div class="flex flex-col gap-1 min-w-0 flex-1"> <h5 class="font-medium leading-none tracking-tight">Did you know?</h5> <div class="text-sm leading-relaxed [&_p]:leading-relaxed">Check out the <a class='underline font-medium' href='/docs'>documentation</a> for more details.</div> </div> </div> <div role="alert" aria-live="assertive" aria-atomic="true" class="relative w-full rounded-md border p-4 flex items-start gap-3 [&>i]:translate-y-0.5 [&>i]:shrink-0 bg-emerald-50 text-emerald-800 border-emerald-300 dark:bg-emerald-950/30 dark:text-emerald-200 dark:border-emerald-800"> <i data-lucide="circle-check" class="inline-block w-4 h-4 shrink-0" aria-hidden="true"></i> <div class="flex flex-col gap-1 min-w-0 flex-1"> <h5 class="font-medium leading-none tracking-tight">Profile updated</h5> <div class="text-sm leading-relaxed [&_p]:leading-relaxed">Your changes were saved. <a class='underline font-medium' href='/settings'>View your profile</a> to confirm.</div> </div> </div> <div role="alert" aria-live="assertive" aria-atomic="true" class="relative w-full rounded-md border p-4 flex items-start gap-3 [&>i]:translate-y-0.5 [&>i]:shrink-0 bg-amber-50 text-amber-800 border-amber-300 dark:bg-amber-950/30 dark:text-amber-200 dark:border-amber-800"> <i data-lucide="circle-alert" class="inline-block w-4 h-4 shrink-0" aria-hidden="true"></i> <div class="flex flex-col gap-1 min-w-0 flex-1"> <h5 class="font-medium leading-none tracking-tight">Action required</h5> <div class="text-sm leading-relaxed [&_p]:leading-relaxed">Please <a class='underline font-medium' href='/verify'>verify your email</a> before continuing.</div> </div> </div> <div role="alert" aria-live="assertive" aria-atomic="true" class="relative w-full rounded-md border p-4 flex items-start gap-3 [&>i]:translate-y-0.5 [&>i]:shrink-0 bg-destructive/10 text-destructive border-destructive/30"> <i data-lucide="circle-alert" class="inline-block w-4 h-4 shrink-0" aria-hidden="true"></i> <div class="flex flex-col gap-1 min-w-0 flex-1"> <h5 class="font-medium leading-none tracking-tight">Payment failed</h5> <div class="text-sm leading-relaxed [&_p]:leading-relaxed">Your card was declined. <a class='underline font-medium' href='/billing'>Update payment method</a> to retry.</div> </div> </div></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="flex flex-col gap-4 max-w-lg"> <%= render(UI::Alert.new(variant: :info)) do |alert| %> <% alert.with_title { "Did you know?" } %> <% alert.with_description { "Check out the <a class='underline font-medium' href='/docs'>documentation</a> for more details.".html_safe } %> <% end %> <%= render(UI::Alert.new(variant: :success)) do |alert| %> <% alert.with_title { "Profile updated" } %> <% alert.with_description { "Your changes were saved. <a class='underline font-medium' href='/settings'>View your profile</a> to confirm.".html_safe } %> <% end %> <%= render(UI::Alert.new(variant: :warning)) do |alert| %> <% alert.with_title { "Action required" } %> <% alert.with_description { "Please <a class='underline font-medium' href='/verify'>verify your email</a> before continuing.".html_safe } %> <% end %> <%= render(UI::Alert.new(variant: :destructive)) do |alert| %> <% alert.with_title { "Payment failed" } %> <% alert.with_description { "Your card was declined. <a class='underline font-medium' href='/billing'>Update payment method</a> to retry.".html_safe } %> <% end %></div>No notes provided.
No params configured.