Previews

No matching results.

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<div class="p-8 space-y-6">
<h2 class="text-2xl font-bold mb-6">All Variants (Soft Style)</h2>
<div class="space-y-4">
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize">primary</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-primary-50 border border-primary-200 text-primary-900">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a primary message.</li>
<li class="text-sm">You can display multiple lines in the message list.</li>
</ul>
</div>
</div>
</div>
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize">secondary</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-secondary-50 border border-secondary-200 text-secondary-900">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a secondary message.</li>
<li class="text-sm">You can display multiple lines in the message list.</li>
</ul>
</div>
</div>
</div>
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize">accent</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-accent-50 border border-accent-200 text-accent-900">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a accent message.</li>
<li class="text-sm">You can display multiple lines in the message list.</li>
</ul>
</div>
</div>
</div>
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize">success</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-success-50 border border-success-200 text-success-900">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a success message.</li>
<li class="text-sm">You can display multiple lines in the message list.</li>
</ul>
</div>
</div>
</div>
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize">danger</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-danger-50 border border-danger-200 text-danger-900">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a danger message.</li>
<li class="text-sm">You can display multiple lines in the message list.</li>
</ul>
</div>
</div>
</div>
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize">warning</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-warning-50 border border-warning-200 text-warning-900">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a warning message.</li>
<li class="text-sm">You can display multiple lines in the message list.</li>
</ul>
</div>
</div>
</div>
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize">info</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-info-50 border border-info-200 text-info-900">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a info message.</li>
<li class="text-sm">You can display multiple lines in the message list.</li>
</ul>
</div>
</div>
</div>
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize">light</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-grayscale-50 border border-grayscale-200 text-grayscale-900">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a light message.</li>
<li class="text-sm">You can display multiple lines in the message list.</li>
</ul>
</div>
</div>
</div>
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize">dark</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-grayscale-100 border border-grayscale-300 text-grayscale-900">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a dark message.</li>
<li class="text-sm">You can display multiple lines in the message list.</li>
</ul>
</div>
</div>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div class="p-8 space-y-6">
<h2 class="text-2xl font-bold mb-6">All Variants (Soft Style)</h2>
<div class="space-y-4">
<% (@variants || BetterUi::ApplicationComponent::VARIANTS.keys).each do |variant| %>
<div>
<h3 class="text-sm font-medium text-grayscale-600 mb-2 capitalize"><%= variant %></h3>
<%= render BetterUi::ActionMessagesComponent.new(
variant: variant,
style: :soft,
messages: [
"This is a #{variant} message.",
"You can display multiple lines in the message list."
]
) %>
</div>
<% end %>
</div>
</div>