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
<div class="p-8 space-y-8">
<h2 class="text-2xl font-bold mb-6">All Styles (Primary Variant)</h2>
<div class="space-y-2">
<h3 class="text-sm font-medium text-grayscale-600 capitalize">solid Style</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative bg-primary-600 text-white">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a solid style message.</li>
<li class="text-sm">Each style has different visual appearance.</li>
</ul>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="text-sm font-medium text-grayscale-600 capitalize">soft Style</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 soft style message.</li>
<li class="text-sm">Each style has different visual appearance.</li>
</ul>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="text-sm font-medium text-grayscale-600 capitalize">outline Style</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative border-2 border-primary-500 bg-white text-primary-700">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a outline style message.</li>
<li class="text-sm">Each style has different visual appearance.</li>
</ul>
</div>
</div>
</div>
<div class="space-y-2">
<h3 class="text-sm font-medium text-grayscale-600 capitalize">ghost Style</h3>
<div data-controller="better-ui--action-messages" class="rounded-lg p-4 relative text-primary-600 hover:bg-primary-50">
<div class="flex gap-3">
<ul class="list-none list-inside space-y-1 flex-1">
<li class="text-sm">This is a ghost style message.</li>
<li class="text-sm">Each style has different visual appearance.</li>
</ul>
</div>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="p-8 space-y-8">
<h2 class="text-2xl font-bold mb-6">All Styles (Primary Variant)</h2>
<% (@styles || [:solid, :soft, :outline, :ghost]).each do |style| %>
<div class="space-y-2">
<h3 class="text-sm font-medium text-grayscale-600 capitalize"><%= style %> Style</h3>
<%= render BetterUi::ActionMessagesComponent.new(
variant: (@variant || :primary),
style: style,
messages: [
"This is a #{style} style message.",
"Each style has different visual appearance."
]
) %>
</div>
<% end %>
</div>