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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<div class="tw:p-6 tw:max-w-7xl tw:mx-auto tw:space-y-8">
<!-- Introductory callout -->
<div class="tw-callout">
<p class="tw:mb-1 tw:text-sm tw:font-mono">
<strong>PROGRESS BAR:</strong> Displays task or process completion status<br>
<strong>VARIANTS:</strong> primary | success | danger | warning | info<br>
<strong>SIZES:</strong> default (6px) | md (10px) | lg (16px)<br>
<strong>MODES:</strong> determinate (fixed %) | indeterminate (bouncing)
</p>
<p class="tw:mb-0 tw:text-sm">
Use progress bars to show how far along a process is. Choose determinate when
the percentage is known, or indeterminate when the duration is unknown.
</p>
</div>
<!-- ============================================
Basic States (0% to 100%)
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Basic States</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Determinate progress:</strong> Set the bar width to reflect completion percentage.
Uses <code>.tw-progress-bar-primary</code> by default.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">0% — Not started</p>
<div class="tw-progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 0%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 0%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">25% — Quarter complete</p>
<div class="tw-progress" role="progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 25%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 25%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">50% — Half complete</p>
<div class="tw-progress" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 50%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">75% — Three quarters</p>
<div class="tw-progress" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 75%">
<div class="tw-progress-bar tw-progress-bar-primary" class="tw:w-3/4"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">100% — Complete</p>
<div class="tw-progress" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 100%">
<div class="tw-progress-bar tw-progress-bar-success" style="width: 100%"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"><br>
  <div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div><br>
</div></code>
</div>
</div>
<!-- ============================================
Color Variants
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Color Variants</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Semantic colors:</strong> Use color variants to convey meaning.
Primary for general progress, success for completion, danger for critical limits,
warning for caution, and info for informational processes.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Primary — <code>.tw-progress-bar-primary</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Primary progress: 60%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 60%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Success — <code>.tw-progress-bar-success</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Success progress: 60%">
<div class="tw-progress-bar tw-progress-bar-success" style="width: 60%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Danger — <code>.tw-progress-bar-danger</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Danger progress: 60%">
<div class="tw-progress-bar tw-progress-bar-danger" style="width: 60%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Warning — <code>.tw-progress-bar-warning</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Warning progress: 60%">
<div class="tw-progress-bar tw-progress-bar-warning" style="width: 60%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Info — <code>.tw-progress-bar-info</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Info progress: 60%">
<div class="tw-progress-bar tw-progress-bar-info" style="width: 60%"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress-bar tw-progress-bar-success" style="width: 60%"></div></code>
</div>
</div>
<!-- ============================================
Size Variants
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Size Variants</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Three sizes:</strong> Default (6px), medium (10px), and large (16px).
Add <code>.tw-progress-md</code> or <code>.tw-progress-lg</code> to the track element.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Default (6px) — <code>.tw-progress</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" aria-label="Default size progress: 50%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Medium (10px) — <code>.tw-progress .tw-progress-md</code></p>
<div class="tw-progress tw-progress-md" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" aria-label="Medium size progress: 50%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Large (16px) — <code>.tw-progress .tw-progress-lg</code></p>
<div class="tw-progress tw-progress-lg" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" aria-label="Large size progress: 50%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress tw-progress-lg">...</div></code>
</div>
</div>
<!-- ============================================
Animated Progress (Demo)
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Animated Progress (Demo)</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Stimulus-driven animation:</strong> The progress controller animates the bar
from 0% to 100% over a configurable duration. Set <code>data-progress-loop-value="true"</code>
to repeat continuously.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Looping animation (3 seconds per cycle)</p>
<div data-controller="progress"
data-progress-animate-value="true"
data-progress-duration-value="3000"
data-progress-loop-value="true">
<div class="tw-progress tw-progress-md" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" aria-label="Animated progress demo">
<div class="tw-progress-bar tw-progress-bar-primary"
data-progress-target="bar"
style="width: 0%"></div>
</div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Looping animation — success color (5 seconds)</p>
<div data-controller="progress"
data-progress-animate-value="true"
data-progress-duration-value="5000"
data-progress-loop-value="true">
<div class="tw-progress tw-progress-md" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" aria-label="Animated success progress demo">
<div class="tw-progress-bar tw-progress-bar-success"
data-progress-target="bar"
style="width: 0%"></div>
</div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div data-controller="progress" data-progress-animate-value="true" data-progress-loop-value="true"><br>
  <div class="tw-progress"><br>
    <div class="tw-progress-bar tw-progress-bar-primary" data-progress-target="bar"></div><br>
  </div><br>
</div></code>
</div>
</div>
<!-- ============================================
Indeterminate Progress
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Indeterminate Progress</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Unknown duration:</strong> When you cannot determine the percentage, use
<code>.tw-progress-indeterminate</code> on the track. The bar bounces continuously using
a CSS-only animation. No JavaScript required.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Primary — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-primary"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Success — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-success"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Danger — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-danger"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Warning — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-warning"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Info — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading..."><br>
  <div class="tw-progress-bar tw-progress-bar-primary"></div><br>
</div></code>
</div>
</div>
<!-- ============================================
Indeterminate Sizes
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Indeterminate — Size Variants</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Sizes work with indeterminate too:</strong> Combine <code>.tw-progress-indeterminate</code>
with <code>.tw-progress-md</code> or <code>.tw-progress-lg</code>.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Default (6px) — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Medium (10px) — indeterminate</p>
<div class="tw-progress tw-progress-md tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Large (16px) — indeterminate</p>
<div class="tw-progress tw-progress-lg tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress tw-progress-lg tw-progress-indeterminate">...</div></code>
</div>
</div>
<!-- ============================================
Use Case Examples
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Use Case Examples</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>In context:</strong> Progress bars within realistic UI scenarios.
</p>
</div>
<div class="tw:space-y-4">
<!-- File upload card -->
<div class="tw-card">
<div class="tw-card-body">
<h3 class="tw-h5 tw:mb-3">File Upload</h3>
<div class="tw:flex tw:items-center tw:justify-between tw:mb-2">
<span class="tw:text-sm tw-fw-medium">application-form.pdf</span>
<span class="tw:text-sm text-muted">72%</span>
</div>
<div class="tw-progress tw-progress-md" role="progressbar" aria-valuenow="72" aria-valuemin="0" aria-valuemax="100" aria-label="Upload progress: 72%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 72%"></div>
</div>
<p class="tw:text-sm text-muted tw:mt-2 tw:mb-0">Uploading... 1.4 MB of 2.0 MB</p>
</div>
</div>
<!-- Application form completion -->
<div class="tw-card">
<div class="tw-card-body">
<h3 class="tw-h5 tw:mb-3">Application Form Completion</h3>
<div class="tw:space-y-3">
<div>
<div class="tw:flex tw:items-center tw:justify-between tw:mb-1">
<span class="tw:text-sm">Personal Details</span>
<span class="tw-badge tw-badge-success-subtle tw:text-sm">Complete</span>
</div>
<div class="tw-progress" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" aria-label="Personal details: complete">
<div class="tw-progress-bar tw-progress-bar-success" style="width: 100%"></div>
</div>
</div>
<div>
<div class="tw:flex tw:items-center tw:justify-between tw:mb-1">
<span class="tw:text-sm">Academic History</span>
<span class="tw-badge tw-badge-warning-subtle tw:text-sm">In Progress</span>
</div>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Academic history: 60%">
<div class="tw-progress-bar tw-progress-bar-warning" style="width: 60%"></div>
</div>
</div>
<div>
<div class="tw:flex tw:items-center tw:justify-between tw:mb-1">
<span class="tw:text-sm">Supporting Documents</span>
<span class="tw-badge tw-badge-secondary-subtle tw:text-sm">Not Started</span>
</div>
<div class="tw-progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" aria-label="Supporting documents: not started">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 0%"></div>
</div>
</div>
</div>
</div>
</div>
<!-- System processing -->
<div class="tw-card">
<div class="tw-card-body">
<h3 class="tw-h5 tw:mb-3">Processing Applications</h3>
<p class="tw:text-sm text-muted tw:mb-3">Generating reports for Year 7 intake 2026...</p>
<div class="tw-progress tw-progress-md tw-progress-indeterminate" role="progressbar" aria-label="Processing applications...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</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
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<div class="tw:p-6 tw:max-w-7xl tw:mx-auto tw:space-y-8">
<!-- Introductory callout -->
<div class="tw-callout">
<p class="tw:mb-1 tw:text-sm tw:font-mono">
<strong>PROGRESS BAR:</strong> Displays task or process completion status<br>
<strong>VARIANTS:</strong> primary | success | danger | warning | info<br>
<strong>SIZES:</strong> default (6px) | md (10px) | lg (16px)<br>
<strong>MODES:</strong> determinate (fixed %) | indeterminate (bouncing)
</p>
<p class="tw:mb-0 tw:text-sm">
Use progress bars to show how far along a process is. Choose determinate when
the percentage is known, or indeterminate when the duration is unknown.
</p>
</div>
<!-- ============================================
Basic States (0% to 100%)
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Basic States</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Determinate progress:</strong> Set the bar width to reflect completion percentage.
Uses <code>.tw-progress-bar-primary</code> by default.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">0% — Not started</p>
<div class="tw-progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 0%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 0%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">25% — Quarter complete</p>
<div class="tw-progress" role="progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 25%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 25%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">50% — Half complete</p>
<div class="tw-progress" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 50%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">75% — Three quarters</p>
<div class="tw-progress" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 75%">
<div class="tw-progress-bar tw-progress-bar-primary" class="tw:w-3/4"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">100% — Complete</p>
<div class="tw-progress" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" aria-label="Progress: 100%">
<div class="tw-progress-bar tw-progress-bar-success" style="width: 100%"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"><br>
  <div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div><br>
</div></code>
</div>
</div>
<!-- ============================================
Color Variants
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Color Variants</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Semantic colors:</strong> Use color variants to convey meaning.
Primary for general progress, success for completion, danger for critical limits,
warning for caution, and info for informational processes.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Primary — <code>.tw-progress-bar-primary</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Primary progress: 60%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 60%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Success — <code>.tw-progress-bar-success</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Success progress: 60%">
<div class="tw-progress-bar tw-progress-bar-success" style="width: 60%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Danger — <code>.tw-progress-bar-danger</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Danger progress: 60%">
<div class="tw-progress-bar tw-progress-bar-danger" style="width: 60%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Warning — <code>.tw-progress-bar-warning</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Warning progress: 60%">
<div class="tw-progress-bar tw-progress-bar-warning" style="width: 60%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Info — <code>.tw-progress-bar-info</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Info progress: 60%">
<div class="tw-progress-bar tw-progress-bar-info" style="width: 60%"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress-bar tw-progress-bar-success" style="width: 60%"></div></code>
</div>
</div>
<!-- ============================================
Size Variants
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Size Variants</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Three sizes:</strong> Default (6px), medium (10px), and large (16px).
Add <code>.tw-progress-md</code> or <code>.tw-progress-lg</code> to the track element.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Default (6px) — <code>.tw-progress</code></p>
<div class="tw-progress" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" aria-label="Default size progress: 50%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Medium (10px) — <code>.tw-progress .tw-progress-md</code></p>
<div class="tw-progress tw-progress-md" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" aria-label="Medium size progress: 50%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Large (16px) — <code>.tw-progress .tw-progress-lg</code></p>
<div class="tw-progress tw-progress-lg" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" aria-label="Large size progress: 50%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 50%"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress tw-progress-lg">...</div></code>
</div>
</div>
<!-- ============================================
Animated Progress (Demo)
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Animated Progress (Demo)</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Stimulus-driven animation:</strong> The progress controller animates the bar
from 0% to 100% over a configurable duration. Set <code>data-progress-loop-value="true"</code>
to repeat continuously.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Looping animation (3 seconds per cycle)</p>
<div data-controller="progress"
data-progress-animate-value="true"
data-progress-duration-value="3000"
data-progress-loop-value="true">
<div class="tw-progress tw-progress-md" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" aria-label="Animated progress demo">
<div class="tw-progress-bar tw-progress-bar-primary"
data-progress-target="bar"
style="width: 0%"></div>
</div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Looping animation — success color (5 seconds)</p>
<div data-controller="progress"
data-progress-animate-value="true"
data-progress-duration-value="5000"
data-progress-loop-value="true">
<div class="tw-progress tw-progress-md" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" aria-label="Animated success progress demo">
<div class="tw-progress-bar tw-progress-bar-success"
data-progress-target="bar"
style="width: 0%"></div>
</div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div data-controller="progress" data-progress-animate-value="true" data-progress-loop-value="true"><br>
  <div class="tw-progress"><br>
    <div class="tw-progress-bar tw-progress-bar-primary" data-progress-target="bar"></div><br>
  </div><br>
</div></code>
</div>
</div>
<!-- ============================================
Indeterminate Progress
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Indeterminate Progress</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Unknown duration:</strong> When you cannot determine the percentage, use
<code>.tw-progress-indeterminate</code> on the track. The bar bounces continuously using
a CSS-only animation. No JavaScript required.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Primary — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-primary"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Success — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-success"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Danger — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-danger"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Warning — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-warning"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Info — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading..."><br>
  <div class="tw-progress-bar tw-progress-bar-primary"></div><br>
</div></code>
</div>
</div>
<!-- ============================================
Indeterminate Sizes
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Indeterminate — Size Variants</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Sizes work with indeterminate too:</strong> Combine <code>.tw-progress-indeterminate</code>
with <code>.tw-progress-md</code> or <code>.tw-progress-lg</code>.
</p>
</div>
<div class="tw:space-y-4">
<div>
<p class="tw:text-sm text-muted tw:mb-1">Default (6px) — indeterminate</p>
<div class="tw-progress tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Medium (10px) — indeterminate</p>
<div class="tw-progress tw-progress-md tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</div>
<div>
<p class="tw:text-sm text-muted tw:mb-1">Large (16px) — indeterminate</p>
<div class="tw-progress tw-progress-lg tw-progress-indeterminate" role="progressbar" aria-label="Loading...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw-progress tw-progress-lg tw-progress-indeterminate">...</div></code>
</div>
</div>
<!-- ============================================
Use Case Examples
============================================ -->
<div class="tw:border-t tw:pt-6">
<h2 class="tw-h4 tw:mb-4">Use Case Examples</h2>
<div class="tw-callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>In context:</strong> Progress bars within realistic UI scenarios.
</p>
</div>
<div class="tw:space-y-4">
<!-- File upload card -->
<div class="tw-card">
<div class="tw-card-body">
<h3 class="tw-h5 tw:mb-3">File Upload</h3>
<div class="tw:flex tw:items-center tw:justify-between tw:mb-2">
<span class="tw:text-sm tw-fw-medium">application-form.pdf</span>
<span class="tw:text-sm text-muted">72%</span>
</div>
<div class="tw-progress tw-progress-md" role="progressbar" aria-valuenow="72" aria-valuemin="0" aria-valuemax="100" aria-label="Upload progress: 72%">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 72%"></div>
</div>
<p class="tw:text-sm text-muted tw:mt-2 tw:mb-0">Uploading... 1.4 MB of 2.0 MB</p>
</div>
</div>
<!-- Application form completion -->
<div class="tw-card">
<div class="tw-card-body">
<h3 class="tw-h5 tw:mb-3">Application Form Completion</h3>
<div class="tw:space-y-3">
<div>
<div class="tw:flex tw:items-center tw:justify-between tw:mb-1">
<span class="tw:text-sm">Personal Details</span>
<span class="tw-badge tw-badge-success-subtle tw:text-sm">Complete</span>
</div>
<div class="tw-progress" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" aria-label="Personal details: complete">
<div class="tw-progress-bar tw-progress-bar-success" style="width: 100%"></div>
</div>
</div>
<div>
<div class="tw:flex tw:items-center tw:justify-between tw:mb-1">
<span class="tw:text-sm">Academic History</span>
<span class="tw-badge tw-badge-warning-subtle tw:text-sm">In Progress</span>
</div>
<div class="tw-progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" aria-label="Academic history: 60%">
<div class="tw-progress-bar tw-progress-bar-warning" style="width: 60%"></div>
</div>
</div>
<div>
<div class="tw:flex tw:items-center tw:justify-between tw:mb-1">
<span class="tw:text-sm">Supporting Documents</span>
<span class="tw-badge tw-badge-secondary-subtle tw:text-sm">Not Started</span>
</div>
<div class="tw-progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" aria-label="Supporting documents: not started">
<div class="tw-progress-bar tw-progress-bar-primary" style="width: 0%"></div>
</div>
</div>
</div>
</div>
</div>
<!-- System processing -->
<div class="tw-card">
<div class="tw-card-body">
<h3 class="tw-h5 tw:mb-3">Processing Applications</h3>
<p class="tw:text-sm text-muted tw:mb-3">Generating reports for Year 7 intake 2026...</p>
<div class="tw-progress tw-progress-md tw-progress-indeterminate" role="progressbar" aria-label="Processing applications...">
<div class="tw-progress-bar tw-progress-bar-info"></div>
</div>
</div>
</div>
</div>
</div>
</div>