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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!-- Default -->
<div class="border border-slate-200 rounded px-4 py-2 bg-white shadow-sm !bg-gray-50" >
<div class="flex">
<div class="flex-shrink-0">
<i class="fa-solid fa-square-info text-gray-500"></i>
</div>
<div class="ml-3">
<h4 class="font-semibold text-slate-900">
Default Notice
</h4>
<div class="text-slate-600">
This is a default notice.
</div>
</div>
</div>
</div>
<!-- Caution -->
<div class="border border-slate-200 rounded px-4 py-2 bg-white shadow-sm !bg-yellow-50" >
<div class="flex">
<div class="flex-shrink-0">
<i class="fa-solid fa-square-info text-yellow-600"></i>
</div>
<div class="ml-3">
<h4 class="font-semibold text-slate-900">
Caution Notice
</h4>
<div class="text-slate-600">
This is a caution notice.
</div>
</div>
</div>
</div>
<!-- Critical -->
<div class="border border-slate-200 rounded px-4 py-2 bg-white shadow-sm !bg-red-50" >
<div class="flex">
<div class="flex-shrink-0">
<i class="fa-solid fa-triangle-exclamation text-red-600"></i>
</div>
<div class="ml-3">
<h4 class="font-semibold text-slate-900">
Critical Notice
</h4>
<div class="text-slate-600">
This is a critical notice.
</div>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
# Default
render Vitrail::Notice.new(title: "Default Notice").with_content("This is a default notice.")
# Caution
render Vitrail::Notice.new(title: "Caution Notice", level: :caution).with_content("This is a caution notice.")
# Critical
render Vitrail::Notice.new(title: "Critical Notice", level: :critical).with_content("This is a critical notice.")