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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<div class="flex flex-col justify-start w-[400px] lg:w-[500px]">
<span class="flex my-4 font-semibold text-gray-400">Default progress bar</span>
<div class="mb-8 space-y-2">
<p class="text-sm text-gray-600 dark:text-gray-200 font-semibold">
Gray
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="30 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 30.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-gray-500 h-4">
<div class="progress_value"> 30% </div>
</div>
</div>
</div>
<span class="flex my-4 font-semibold text-gray-400">With outside Label</span>
<div class="mb-8 space-y-2">
<div class="flex justify-between mb-1">
<span class="text-sm text-gray-600 dark:text-gray-200 font-semibold">
RRUI
</span>
<span class="text-sm text-gray-600 dark:text-gray-200 font-semibold">
50%
</span>
</div>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="50 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 50.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-blue-500 h-4 text-xs font-semibold text-white text-center leading-none">
<div class="progress_value"> 50% </div>
</div>
</div>
</div>
<span class="flex my-4 font-semibold text-gray-400">Different Colours</span>
<div class="flex flex-col gap-4 mb-8">
<p class="text-sm text-gray-600 dark:text-gray-200 font-semibold">
Gray
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="30 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 30.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-gray-500 h-4">
<div class="progress_value"> 30% </div>
</div>
</div>
<p class="text-sm text-indigo-600 dark:text-indigo-200 font-semibold">
Indigo
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="60 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 60.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-indigo-500 h-4">
<div class="progress_value"> 60% </div>
</div>
</div>
<p class="text-sm text-purple-600 dark:text-purple-200 font-semibold">
Purple
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="90 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 90.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-purple-500 h-4">
<div class="progress_value"> 90% </div>
</div>
</div>
<p class="text-sm text-blue-600 dark:text-blue-200 font-semibold">
Blue
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="30 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 30.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-blue-500 h-4">
<div class="progress_value"> 30% </div>
</div>
</div>
<p class="text-sm text-emerald-600 dark:text-emerald-200 font-semibold">
Green
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="40 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 40.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-emerald-500 h-4">
<div class="progress_value"> 40% </div>
</div>
</div>
<p class="text-sm text-yellow-600 dark:text-yellow-200 font-semibold">
Yellow
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="25 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 25.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-yellow-500 h-4">
<div class="progress_value"> 25% </div>
</div>
</div>
<p class="text-sm text-orange-600 dark:text-orange-200 font-semibold">
Orange
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="80 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 80.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-orange-500 h-4">
<div class="progress_value"> 80% </div>
</div>
</div>
<p class="text-sm font-semibold">
Red
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="10 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 10.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-rose-500 h-4">
<div class="progress_value"> 10% </div>
</div>
</div>
</div>
<span class="flex my-4 font-semibold text-gray-400">Different Colours With label inside</span>
<div class="flex flex-col gap-4 mb-8">
<p class="text-sm text-gray-600 dark:text-gray-200 font-semibold">
Gray
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="50 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 50.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-gray-500 h-4">
<div class="progress_value"> 50% </div>
</div>
</div>
<p class="text-sm text-indigo-600 dark:text-indigo-200 font-semibold">
Indigo
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="60 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 60.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-indigo-500 h-4">
<div class="progress_value"> 60% </div>
</div>
</div>
<p class="text-sm text-purple-600 dark:text-purple-200 font-semibold">
Purple
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="90 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 90.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-purple-500 h-4">
<div class="progress_value"> 90% </div>
</div>
</div>
<p class="text-sm text-blue-600 dark:text-blue-200 font-semibold">
Blue
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="30 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 30.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-blue-500 h-4">
<div class="progress_value"> 30% </div>
</div>
</div>
<p class="text-sm text-emerald-600 dark:text-emerald-200 font-semibold">
Green
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="40 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 40.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-emerald-500 h-4">
<div class="progress_value"> 40% </div>
</div>
</div>
<p class="text-sm text-yellow-600 dark:text-yellow-200 font-semibold">
Yellow
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="25 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 25.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-yellow-500 h-4">
<div class="progress_value"> 25% </div>
</div>
</div>
<p class="text-sm text-orange-600 dark:text-orange-200 font-semibold">
Orange
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="80 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 80.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-orange-500 h-4">
<div class="progress_value"> 80% </div>
</div>
</div>
<p class="text-sm font-semibold">
Red
</p>
<div role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="10 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 10.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-rose-500 h-4">
<div class="progress_value"> 10% </div>
</div>
</div>
</div>
<span class="flex my-4 font-semibold text-gray-400">Different sizes</span>
<div class="flex flex-col gap-4 mb-8">
<div height="small" role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="25 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 25.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-gray-500 h-4">
<div class="progress_value"> 25% </div>
</div>
</div>
<div height="medium" role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="50 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 50.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-gray-500 h-4">
<div class="progress_value"> 50% </div>
</div>
</div>
<div height="large" role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="75 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 75.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-gray-500 h-4">
<div class="progress_value"> 75% </div>
</div>
</div>
<div height="xlarge" striped="true" role="progressbar" aria-labelledby="ProgressLabel" aria-valuenow="90 bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4" class="bg-gray-200 dark:bg-gray-700 text-xs font-semibold text-white text-center leading-none text-gray-600 dark:text-gray-200 rounded-full w-full h-4">
<div style="width: 90.0%" class="p-0.6 rounded-full flex items-center justify-center rounded-full bg-rose-500 h-4">
<div class="progress_value"> 90% </div>
</div>
</div>
</div>
</div>
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
<div class="flex flex-col justify-start w-[400px] lg:w-[500px]">
<span class="flex my-4 font-semibold text-gray-400">Default progress bar</span>
<div class="mb-8 space-y-2">
<%= rui_text(tag: :body, size: :bodySm, color: :gray, weight: :semibold){ "Gray " } %>
<%= rui_progressbar( progress: 30) %>
</div>
<span class="flex my-4 font-semibold text-gray-400">With outside Label</span>
<div class="mb-8 space-y-2">
<%= rui_progressbar(style: :blue, progress: 50, label: true, header: "RRUI", text: "50%") %>
</div>
<span class="flex my-4 font-semibold text-gray-400">Different Colours</span>
<div class="flex flex-col gap-4 mb-8">
<%= rui_text(tag: :body, size: :bodySm, color: :gray, weight: :semibold){ "Gray" } %>
<%= rui_progressbar(style: :gray, progress: 30) %>
<%= rui_text(tag: :body, size: :bodySm, color: :indigo, weight: :semibold){ "Indigo " } %>
<%= rui_progressbar(style: :indigo, progress: 60) %>
<%= rui_text(tag: :body, size: :bodySm, color: :purple, weight: :semibold){ "Purple " } %>
<%= rui_progressbar(style: :purple, progress: 90) %>
<%= rui_text(tag: :body, size: :bodySm, color: :blue, weight: :semibold){ "Blue " } %>
<%= rui_progressbar(style: :blue, progress: 30) %>
<%= rui_text(tag: :body, size: :bodySm, color: :green, weight: :semibold){ "Green " } %>
<%= rui_progressbar(style: :green, progress: 40) %>
<%= rui_text(tag: :body, size: :bodySm, color: :yellow, weight: :semibold){ "Yellow " } %>
<%= rui_progressbar(style: :yellow, progress: 25) %>
<%= rui_text(tag: :body, size: :bodySm, color: :orange, weight: :semibold){ "Orange " } %>
<%= rui_progressbar(style: :orange, progress: 80) %>
<%= rui_text(tag: :body, size: :bodySm, color: :red, weight: :semibold){ "Red" } %>
<%= rui_progressbar(style: :red, progress: 10) %>
</div>
<span class="flex my-4 font-semibold text-gray-400">Different Colours With label inside</span>
<div class="flex flex-col gap-4 mb-8">
<%= rui_text(tag: :body, size: :bodySm, color: :gray, weight: :semibold){ "Gray " } %>
<%= rui_progressbar(style: :gray, progress: 50) %>
<%= rui_text(tag: :body, size: :bodySm, color: :indigo, weight: :semibold){ "Indigo " } %>
<%= rui_progressbar(style: :indigo, progress: 60) %>
<%= rui_text(tag: :body, size: :bodySm, color: :purple, weight: :semibold){ "Purple " } %>
<%= rui_progressbar(style: :purple, progress: 90) %>
<%= rui_text(tag: :body, size: :bodySm, color: :blue, weight: :semibold){ "Blue " } %>
<%= rui_progressbar(style: :blue, progress: 30) %>
<%= rui_text(tag: :body, size: :bodySm, color: :green, weight: :semibold){ "Green " } %>
<%= rui_progressbar(style: :green, progress: 40) %>
<%= rui_text(tag: :body, size: :bodySm, color: :yellow, weight: :semibold){ "Yellow " } %>
<%= rui_progressbar(style: :yellow, progress: 25) %>
<%= rui_text(tag: :body, size: :bodySm, color: :orange, weight: :semibold){ "Orange " } %>
<%= rui_progressbar(style: :orange, progress: 80) %>
<%= rui_text(tag: :body, size: :bodySm, color: :red, weight: :semibold){ "Red" } %>
<%= rui_progressbar(style: :red, progress: 10) %>
</div>
<span class="flex my-4 font-semibold text-gray-400">Different sizes</span>
<div class="flex flex-col gap-4 mb-8">
<%= rui_progressbar(height: :small, progress: 25) %>
<%= rui_progressbar(height: :medium, progress: 50) %>
<%= rui_progressbar(height: :large, progress: 75) %>
<%= rui_progressbar(height: :xlarge, progress: 90, striped: true, style: :red) %>
</div>
</div>