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
<div class="p-8 space-y-8"> <h3 class="text-lg font-semibold mb-4">Spinner Variants</h3> <div class="flex flex-wrap gap-8 items-center"> <div class="flex flex-col items-center gap-2"> <div role="status" class="text-primary-600"> <svg class="animate-spin w-12 h-12" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> <span class="sr-only">Loading...</span> </div> <span class="text-sm font-medium text-gray-600 capitalize">primary</span> </div> <div class="flex flex-col items-center gap-2"> <div role="status" class="text-secondary-500"> <svg class="animate-spin w-12 h-12" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> <span class="sr-only">Loading...</span> </div> <span class="text-sm font-medium text-gray-600 capitalize">secondary</span> </div> <div class="flex flex-col items-center gap-2"> <div role="status" class="text-accent-500"> <svg class="animate-spin w-12 h-12" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> <span class="sr-only">Loading...</span> </div> <span class="text-sm font-medium text-gray-600 capitalize">accent</span> </div> <div class="flex flex-col items-center gap-2"> <div role="status" class="text-success-600"> <svg class="animate-spin w-12 h-12" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> <span class="sr-only">Loading...</span> </div> <span class="text-sm font-medium text-gray-600 capitalize">success</span> </div> <div class="flex flex-col items-center gap-2"> <div role="status" class="text-danger-600"> <svg class="animate-spin w-12 h-12" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> <span class="sr-only">Loading...</span> </div> <span class="text-sm font-medium text-gray-600 capitalize">danger</span> </div> <div class="flex flex-col items-center gap-2"> <div role="status" class="text-warning-500"> <svg class="animate-spin w-12 h-12" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> <span class="sr-only">Loading...</span> </div> <span class="text-sm font-medium text-gray-600 capitalize">warning</span> </div> <div class="flex flex-col items-center gap-2"> <div role="status" class="text-info-500"> <svg class="animate-spin w-12 h-12" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> <span class="sr-only">Loading...</span> </div> <span class="text-sm font-medium text-gray-600 capitalize">info</span> </div> <div class="flex flex-col items-center gap-2"> <div role="status" class="text-grayscale-400"> <svg class="animate-spin w-12 h-12" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> <span class="sr-only">Loading...</span> </div> <span class="text-sm font-medium text-gray-600 capitalize">light</span> </div> <div class="flex flex-col items-center gap-2"> <div role="status" class="text-grayscale-800"> <svg class="animate-spin w-12 h-12" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> <span class="sr-only">Loading...</span> </div> <span class="text-sm font-medium text-gray-600 capitalize">dark</span> </div> </div></div>1
2
3
4
5
6
7
8
9
10
11
<div class="p-8 space-y-8"> <h3 class="text-lg font-semibold mb-4">Spinner Variants</h3> <div class="flex flex-wrap gap-8 items-center"> <% (@variants || BetterUi::ApplicationComponent::VARIANTS.keys).each do |variant| %> <div class="flex flex-col items-center gap-2"> <%= render BetterUi::SpinnerComponent.new(variant: variant, size: :lg) %> <span class="text-sm font-medium text-gray-600 capitalize"><%= variant %></span> </div> <% end %> </div></div>No notes provided.
No params configured.