@solexllc/usx-react 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/index.cjs +231 -98
  2. package/dist/index.js +231 -98
  3. package/package.json +5 -5
  4. package/src/components/accordion/accordion.html +596 -291
  5. package/src/components/alert/alert.html +112 -148
  6. package/src/components/attribution/attribution.html +50 -21
  7. package/src/components/avatar/avatar.html +86 -51
  8. package/src/components/breadcrumb/breadcrumb.html +45 -66
  9. package/src/components/button/button.html +363 -226
  10. package/src/components/callout/Callout.tsx +1 -2
  11. package/src/components/callout/callout.django.html +2 -2
  12. package/src/components/callout/callout.html +0 -5
  13. package/src/components/callout/config.json +1 -5
  14. package/src/components/card/Card.tsx +6 -3
  15. package/src/components/card/card.django.html +2 -2
  16. package/src/components/card/card.html +1032 -35
  17. package/src/components/card/config.json +6 -2
  18. package/src/components/card-group/card-group.html +388 -95
  19. package/src/components/carousel/Carousel.tsx +42 -71
  20. package/src/components/carousel/carousel.django.html +22 -46
  21. package/src/components/carousel/carousel.html +715 -32
  22. package/src/components/carousel/config.json +25 -12
  23. package/src/components/character-count/character-count.html +231 -26
  24. package/src/components/checkbox/checkbox.html +313 -241
  25. package/src/components/checkbox-group/checkbox-group.html +346 -26
  26. package/src/components/clickable/clickable.html +168 -83
  27. package/src/components/code/Code.tsx +4 -3
  28. package/src/components/code/code.django.html +1 -1
  29. package/src/components/code/config.json +4 -0
  30. package/src/components/collection/collection.html +203 -379
  31. package/src/components/combobox/combobox.html +21 -9
  32. package/src/components/container/container.html +2616 -80
  33. package/src/components/copy-to-clipboard/copy-to-clipboard.html +48 -20
  34. package/src/components/details/Details.tsx +69 -0
  35. package/src/components/details/config.json +73 -0
  36. package/src/components/details/details.django.html +7 -0
  37. package/src/components/details/details.html +186 -0
  38. package/src/components/error-message/error-message.html +15 -2
  39. package/src/components/error-page/ErrorPage.tsx +169 -0
  40. package/src/components/error-page/config.json +152 -0
  41. package/src/components/error-page/error-page.django.html +80 -0
  42. package/src/components/error-page/error-page.html +437 -0
  43. package/src/components/eyebrow/eyebrow.html +8 -4
  44. package/src/components/fieldset/fieldset.html +33 -7
  45. package/src/components/file-input/file-input.html +310 -31
  46. package/src/components/file-list/file-list.html +191 -7
  47. package/src/components/footer/footer.html +611 -232
  48. package/src/components/header/header.html +2553 -611
  49. package/src/components/hero/hero.html +300 -38
  50. package/src/components/hint/hint.html +7 -2
  51. package/src/components/identifier/identifier.html +483 -255
  52. package/src/components/image/Image.tsx +2 -2
  53. package/src/components/image/image.django.html +4 -10
  54. package/src/components/image/image.html +144 -29
  55. package/src/components/indicator/indicator.html +25 -23
  56. package/src/components/label/label.html +15 -16
  57. package/src/components/language-selector/language-selector.html +74 -25
  58. package/src/components/layout/layout.html +991 -21
  59. package/src/components/legend/legend.html +10 -9
  60. package/src/components/list/list.html +45 -25
  61. package/src/components/page/Page.tsx +15 -2
  62. package/src/components/page/config.json +13 -1
  63. package/src/components/page/page.django.html +2 -2
  64. package/src/components/page/page.html +29 -8
  65. package/src/components/pagination/pagination.html +907 -305
  66. package/src/components/prose/prose.html +244 -85
  67. package/src/components/quote/Quote.tsx +1 -1
  68. package/src/components/quote/config.json +1 -2
  69. package/src/components/quote/quote.html +2 -7
  70. package/src/components/radio-buttons/radio-buttons.html +623 -127
  71. package/src/components/required/required.html +3 -4
  72. package/src/components/search/search.html +336 -54
  73. package/src/components/section/section.html +73 -11
  74. package/src/components/select/select.html +112 -58
  75. package/src/components/skipnav/skipnav.html +40 -1
  76. package/src/components/spinner/spinner.html +143 -23
  77. package/src/components/step-indicator/step-indicator.html +26 -68
  78. package/src/components/swap/swap.html +99 -154
  79. package/src/components/table/table.html +2168 -988
  80. package/src/components/tag/tag.html +73 -17
  81. package/src/components/task-list/task-list.html +252 -15
  82. package/src/components/theme-picker/theme-picker.html +26 -8
  83. package/src/components/toggle/toggle.html +64 -5
  84. package/src/index.js +2 -0
@@ -1,67 +1,1064 @@
1
- <h3 class="site-preview-heading">Default card</h3>
2
- <div class="usa-card usx-card tablet:grid-col-6 widescreen:grid-col-4">
1
+ <h3 class="site-preview-heading">Default</h3>
2
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
3
3
  <div class="usa-card__container">
4
- <div class="usa-card__header">
5
- <h4 class="usa-card__heading">Card</h4>
4
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
5
+ <div class="usa-card__body">
6
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
7
+ </div>
8
+ <div class="usa-card__footer">
9
+ <ul class="usa-button-group usx-button-group flex-wrap">
10
+ <li class="usa-button-group__item">
11
+ <button type="button" class="usa-button usx-button usa-button--primary">
12
+ Learn More
13
+ </button>
14
+ </li>
15
+ <li class="usa-button-group__item">
16
+ <button type="button" class="usa-button usx-button usa-button--secondary">
17
+ View Details
18
+ </button>
19
+ </li>
20
+ </ul>
21
+ </div>
22
+ </div>
23
+ </div>
24
+
25
+ <h3 class="site-preview-heading">With Image</h3>
26
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
27
+ <div class="usa-card__container">
28
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
29
+ <div class="usa-card__media">
30
+ <figure class="usx-image usa-card__img">
31
+ <img
32
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
33
+ alt="Placeholder image for card"
34
+ />
35
+ <figcaption class="usx-image--caption usa-sr-only">
36
+ This is an image caption.
37
+ </figcaption>
38
+ </figure>
6
39
  </div>
7
40
  <div class="usa-card__body">
8
- <p>
9
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum
10
- tenetur quo cupiditate, eaque qui officia recusandae.
11
- </p>
41
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
12
42
  </div>
13
43
  <div class="usa-card__footer">
14
- <button class="usa-button usx-button usa-button--primary">Visit Florida Keys</button>
44
+ <ul class="usa-button-group usx-button-group flex-wrap">
45
+ <li class="usa-button-group__item">
46
+ <button type="button" class="usa-button usx-button usa-button--primary">
47
+ Learn More
48
+ </button>
49
+ </li>
50
+ <li class="usa-button-group__item">
51
+ <button type="button" class="usa-button usx-button usa-button--secondary">
52
+ View Details
53
+ </button>
54
+ </li>
55
+ </ul>
15
56
  </div>
16
57
  </div>
17
58
  </div>
18
59
 
19
- <h3 class="site-preview-heading">Card with Image</h3>
20
- <div class="usa-card usx-card tablet:grid-col-6 widescreen:grid-col-4">
60
+ <h3 class="site-preview-heading">With Tags</h3>
61
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
21
62
  <div class="usa-card__container">
22
- <div class="usa-card__header">
23
- <h4 class="usa-card__heading">Card with Image</h4>
63
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
64
+ <div class="usa-card__body">
65
+ <div class="usx-tag-group">
66
+ <span class="usa-tag usx-tag bg-primary">Primary</span>
67
+ <span class="usa-tag usx-tag bg-success">Success</span>
68
+ <span class="usa-tag usx-tag bg-warning">Warning</span>
69
+ </div>
70
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
71
+ </div>
72
+ <div class="usa-card__footer">
73
+ <ul class="usa-button-group usx-button-group flex-wrap">
74
+ <li class="usa-button-group__item">
75
+ <button type="button" class="usa-button usx-button usa-button--primary">
76
+ Learn More
77
+ </button>
78
+ </li>
79
+ <li class="usa-button-group__item">
80
+ <button type="button" class="usa-button usx-button usa-button--secondary">
81
+ View Details
82
+ </button>
83
+ </li>
84
+ </ul>
24
85
  </div>
86
+ </div>
87
+ </div>
88
+
89
+ <h3 class="site-preview-heading">With Image And Tags</h3>
90
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
91
+ <div class="usa-card__container">
92
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
25
93
  <div class="usa-card__media">
26
- <div class="usa-card__img">
94
+ <figure class="usx-image usa-card__img">
95
+ <img
96
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
97
+ alt="Placeholder image for card"
98
+ />
99
+ <figcaption class="usx-image--caption usa-sr-only">
100
+ This is an image caption.
101
+ </figcaption>
102
+ </figure>
103
+ </div>
104
+ <div class="usa-card__body">
105
+ <div class="usx-tag-group">
106
+ <span class="usa-tag usx-tag bg-primary"> Primary</span
107
+ ><span class="usa-tag usx-tag bg-success"> Success</span
108
+ ><span class="usa-tag usx-tag bg-warning"> Warning</span>
109
+ </div>
110
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
111
+ </div>
112
+ <div class="usa-card__footer">
113
+ <ul class="usa-button-group usx-button-group flex-wrap">
114
+ <li class="usa-button-group__item">
115
+ <button type="button" class="usa-button usx-button usa-button--primary">
116
+ Learn More
117
+ </button>
118
+ </li>
119
+ <li class="usa-button-group__item">
120
+ <button type="button" class="usa-button usx-button usa-button--secondary">
121
+ View Details
122
+ </button>
123
+ </li>
124
+ </ul>
125
+ </div>
126
+ </div>
127
+ </div>
128
+
129
+ <h3 class="site-preview-heading">Flag Layout</h3>
130
+ <div class="usa-card usx-card usa-card--flag grid-col-8">
131
+ <div class="usa-card__container">
132
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
133
+ <div class="usa-card__media">
134
+ <figure class="usx-image usa-card__img">
135
+ <img
136
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
137
+ alt="Placeholder image for card"
138
+ />
139
+ <figcaption class="usx-image--caption usa-sr-only">
140
+ This is an image caption.
141
+ </figcaption>
142
+ </figure>
143
+ </div>
144
+ <div class="usa-card__body">
145
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
146
+ </div>
147
+ <div class="usa-card__footer">
148
+ <ul class="usa-button-group usx-button-group flex-wrap">
149
+ <li class="usa-button-group__item">
150
+ <button type="button" class="usa-button usx-button usa-button--primary">
151
+ Learn More
152
+ </button>
153
+ </li>
154
+ <li class="usa-button-group__item">
155
+ <button type="button" class="usa-button usx-button usa-button--secondary">
156
+ View Details
157
+ </button>
158
+ </li>
159
+ </ul>
160
+ </div>
161
+ </div>
162
+ </div>
163
+
164
+ <h3 class="site-preview-heading">Media Right</h3>
165
+ <div class="usa-card usx-card usa-card--flag usa-card--media-right grid-col-8">
166
+ <div class="usa-card__container">
167
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
168
+ <div class="usa-card__media">
169
+ <figure class="usx-image usa-card__img">
170
+ <img
171
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
172
+ alt="Placeholder image for card"
173
+ />
174
+ <figcaption class="usx-image--caption usa-sr-only">
175
+ This is an image caption.
176
+ </figcaption>
177
+ </figure>
178
+ </div>
179
+ <div class="usa-card__body">
180
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
181
+ </div>
182
+ <div class="usa-card__footer">
183
+ <ul class="usa-button-group usx-button-group flex-wrap">
184
+ <li class="usa-button-group__item">
185
+ <button type="button" class="usa-button usx-button usa-button--primary">
186
+ Learn More
187
+ </button>
188
+ </li>
189
+ <li class="usa-button-group__item">
190
+ <button type="button" class="usa-button usx-button usa-button--secondary">
191
+ View Details
192
+ </button>
193
+ </li>
194
+ </ul>
195
+ </div>
196
+ </div>
197
+ </div>
198
+
199
+ <h3 class="site-preview-heading">Header First</h3>
200
+ <div class="usa-card usx-card usa-card--header-first tablet:grid-col-8 widescreen:grid-col-6">
201
+ <div class="usa-card__container">
202
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
203
+ <div class="usa-card__media">
204
+ <figure class="usx-image usa-card__img">
205
+ <img
206
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
207
+ alt="Placeholder image for card"
208
+ />
209
+ <figcaption class="usx-image--caption usa-sr-only">
210
+ This is an image caption.
211
+ </figcaption>
212
+ </figure>
213
+ </div>
214
+ <div class="usa-card__body">
215
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
216
+ </div>
217
+ <div class="usa-card__footer">
218
+ <ul class="usa-button-group usx-button-group flex-wrap">
219
+ <li class="usa-button-group__item">
220
+ <button type="button" class="usa-button usx-button usa-button--primary">
221
+ Learn More
222
+ </button>
223
+ </li>
224
+ <li class="usa-button-group__item">
225
+ <button type="button" class="usa-button usx-button usa-button--secondary">
226
+ View Details
227
+ </button>
228
+ </li>
229
+ </ul>
230
+ </div>
231
+ </div>
232
+ </div>
233
+
234
+ <h3 class="site-preview-heading">Media Inset</h3>
235
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
236
+ <div class="usa-card__container">
237
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
238
+ <div class="usa-card__media usa-card__media--inset">
239
+ <figure class="usx-image usa-card__img">
240
+ <img
241
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
242
+ alt="Placeholder image for card"
243
+ />
244
+ <figcaption class="usx-image--caption usa-sr-only">
245
+ This is an image caption.
246
+ </figcaption>
247
+ </figure>
248
+ </div>
249
+ <div class="usa-card__body">
250
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
251
+ </div>
252
+ <div class="usa-card__footer">
253
+ <ul class="usa-button-group usx-button-group flex-wrap">
254
+ <li class="usa-button-group__item">
255
+ <button type="button" class="usa-button usx-button usa-button--primary">
256
+ Learn More
257
+ </button>
258
+ </li>
259
+ <li class="usa-button-group__item">
260
+ <button type="button" class="usa-button usx-button usa-button--secondary">
261
+ View Details
262
+ </button>
263
+ </li>
264
+ </ul>
265
+ </div>
266
+ </div>
267
+ </div>
268
+
269
+ <h3 class="site-preview-heading">Media Inset Right</h3>
270
+ <div
271
+ class="usa-card usx-card usa-card--flag usa-card--media-right tablet:grid-col-8 widescreen:grid-col-6"
272
+ >
273
+ <div class="usa-card__container">
274
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
275
+ <div class="usa-card__media usa-card__media--inset">
276
+ <figure class="usx-image usa-card__img">
277
+ <img
278
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
279
+ alt="Placeholder image for card"
280
+ />
281
+ <figcaption class="usx-image--caption usa-sr-only">
282
+ This is an image caption.
283
+ </figcaption>
284
+ </figure>
285
+ </div>
286
+ <div class="usa-card__body">
287
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
288
+ </div>
289
+ <div class="usa-card__footer">
290
+ <ul class="usa-button-group usx-button-group flex-wrap">
291
+ <li class="usa-button-group__item">
292
+ <button type="button" class="usa-button usx-button usa-button--primary">
293
+ Learn More
294
+ </button>
295
+ </li>
296
+ <li class="usa-button-group__item">
297
+ <button type="button" class="usa-button usx-button usa-button--secondary">
298
+ View Details
299
+ </button>
300
+ </li>
301
+ </ul>
302
+ </div>
303
+ </div>
304
+ </div>
305
+
306
+ <h3 class="site-preview-heading">Media Exdent</h3>
307
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
308
+ <div class="usa-card__container">
309
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
310
+ <div class="usa-card__media usa-card__media--exdent">
311
+ <figure class="usx-image usa-card__img">
27
312
  <img
28
313
  src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
29
- alt="A placeholder image"
314
+ alt="Placeholder image for card"
30
315
  />
316
+ <figcaption class="usx-image--caption usa-sr-only">
317
+ This is an image caption.
318
+ </figcaption>
319
+ </figure>
320
+ </div>
321
+ <div class="usa-card__body">
322
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
323
+ </div>
324
+ <div class="usa-card__footer">
325
+ <ul class="usa-button-group usx-button-group flex-wrap">
326
+ <li class="usa-button-group__item">
327
+ <button type="button" class="usa-button usx-button usa-button--primary">
328
+ Learn More
329
+ </button>
330
+ </li>
331
+ <li class="usa-button-group__item">
332
+ <button type="button" class="usa-button usx-button usa-button--secondary">
333
+ View Details
334
+ </button>
335
+ </li>
336
+ </ul>
337
+ </div>
338
+ </div>
339
+ </div>
340
+
341
+ <h3 class="site-preview-heading">With Carousel</h3>
342
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
343
+ <div class="usa-card__container">
344
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
345
+ <div class="usa-card__media">
346
+ <div
347
+ class="usx-carousel usx-card__carousel"
348
+ role="group"
349
+ aria-roledescription="carousel"
350
+ aria-label="Featured content"
351
+ >
352
+ <div class="usx-carousel__viewport">
353
+ <div class="usx-carousel__track" aria-live="polite" tabindex="0">
354
+ <section
355
+ id="html-card-with-carousel-card-carousel-slide-1"
356
+ class="usx-carousel__slide"
357
+ role="group"
358
+ aria-roledescription="slide"
359
+ aria-label="1 of 3"
360
+ >
361
+ <figure class="usx-image usx-object-fit-cover">
362
+ <img
363
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
364
+ alt="Placeholder image for card"
365
+ />
366
+ <figcaption class="usx-image--caption usa-sr-only">
367
+ This is an image caption.
368
+ </figcaption>
369
+ </figure>
370
+ </section>
371
+ <section
372
+ id="html-card-with-carousel-card-carousel-slide-2"
373
+ class="usx-carousel__slide"
374
+ role="group"
375
+ aria-roledescription="slide"
376
+ aria-label="2 of 3"
377
+ >
378
+ <figure class="usx-image usx-object-fit-cover">
379
+ <img
380
+ src="https://picsum.photos/800/300?random=1"
381
+ alt="Placeholder image for card"
382
+ />
383
+ <figcaption class="usx-image--caption usa-sr-only">
384
+ This is another image caption.
385
+ </figcaption>
386
+ </figure>
387
+ </section>
388
+ <section
389
+ id="html-card-with-carousel-card-carousel-slide-3"
390
+ class="usx-carousel__slide"
391
+ role="group"
392
+ aria-roledescription="slide"
393
+ aria-label="3 of 3"
394
+ >
395
+ <figure class="usx-image usx-object-fit-cover">
396
+ <img
397
+ src="https://picsum.photos/800/300?random=2"
398
+ alt="Placeholder image for card"
399
+ />
400
+ <figcaption class="usx-image--caption usa-sr-only">
401
+ This is yet another image caption.
402
+ </figcaption>
403
+ </figure>
404
+ </section>
405
+ </div>
406
+ </div>
31
407
  </div>
32
408
  </div>
33
409
  <div class="usa-card__body">
34
- <p>
35
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum
36
- tenetur quo cupiditate, eaque qui officia recusandae.
37
- </p>
410
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
38
411
  </div>
39
412
  <div class="usa-card__footer">
40
- <button class="usa-button usx-button usa-button--primary">Visit Florida Keys</button>
413
+ <ul class="usa-button-group usx-button-group flex-wrap">
414
+ <li class="usa-button-group__item">
415
+ <button type="button" class="usa-button usx-button usa-button--primary">
416
+ Learn More
417
+ </button>
418
+ </li>
419
+ <li class="usa-button-group__item">
420
+ <button type="button" class="usa-button usx-button usa-button--secondary">
421
+ View Details
422
+ </button>
423
+ </li>
424
+ </ul>
41
425
  </div>
42
426
  </div>
43
427
  </div>
44
428
 
45
- <h3 class="site-preview-heading">Card with Tags</h3>
46
- <div class="usa-card usx-card tablet:grid-col-6 widescreen:grid-col-4">
429
+ <h3 class="site-preview-heading">With Carousel Inset</h3>
430
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
47
431
  <div class="usa-card__container">
48
- <div class="usa-card__header">
49
- <h4 class="usa-card__heading">Card with Tags</h4>
432
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
433
+ <div class="usa-card__media usa-card__media--inset">
434
+ <div
435
+ class="usx-carousel usx-card__carousel"
436
+ role="group"
437
+ aria-roledescription="carousel"
438
+ aria-label="Featured content"
439
+ >
440
+ <div class="usx-carousel__viewport">
441
+ <div class="usx-carousel__track" aria-live="polite" tabindex="0">
442
+ <section
443
+ id="html-card-with-carousel-inset-card-carousel-slide-1"
444
+ class="usx-carousel__slide"
445
+ role="group"
446
+ aria-roledescription="slide"
447
+ aria-label="1 of 3"
448
+ >
449
+ <figure class="usx-image usx-object-fit-cover">
450
+ <img
451
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
452
+ alt="Placeholder image for card"
453
+ />
454
+ <figcaption class="usx-image--caption usa-sr-only">
455
+ This is an image caption.
456
+ </figcaption>
457
+ </figure>
458
+ </section>
459
+ <section
460
+ id="html-card-with-carousel-inset-card-carousel-slide-2"
461
+ class="usx-carousel__slide"
462
+ role="group"
463
+ aria-roledescription="slide"
464
+ aria-label="2 of 3"
465
+ >
466
+ <figure class="usx-image usx-object-fit-cover">
467
+ <img
468
+ src="https://picsum.photos/800/300?random=1"
469
+ alt="Placeholder image for card"
470
+ />
471
+ <figcaption class="usx-image--caption usa-sr-only">
472
+ This is another image caption.
473
+ </figcaption>
474
+ </figure>
475
+ </section>
476
+ <section
477
+ id="html-card-with-carousel-inset-card-carousel-slide-3"
478
+ class="usx-carousel__slide"
479
+ role="group"
480
+ aria-roledescription="slide"
481
+ aria-label="3 of 3"
482
+ >
483
+ <figure class="usx-image usx-object-fit-cover">
484
+ <img
485
+ src="https://picsum.photos/800/300?random=2"
486
+ alt="Placeholder image for card"
487
+ />
488
+ <figcaption class="usx-image--caption usa-sr-only">
489
+ This is yet another image caption.
490
+ </figcaption>
491
+ </figure>
492
+ </section>
493
+ </div>
494
+ </div>
495
+ </div>
50
496
  </div>
51
497
  <div class="usa-card__body">
52
- <p>
53
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum
54
- tenetur quo cupiditate, eaque qui officia recusandae.
55
- </p>
56
- <div class="display-flex flex-wrap margin-top-1">
57
- <span class="usa-tag usx-tag usa-tag--primary margin-05">Primary</span>
58
- <span class="usa-tag usx-tag usa-tag--success margin-05">Success</span>
59
- <span class="usa-tag usx-tag usa-tag--warning margin-05">Warning</span>
498
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
499
+ </div>
500
+ <div class="usa-card__footer">
501
+ <ul class="usa-button-group usx-button-group flex-wrap">
502
+ <li class="usa-button-group__item">
503
+ <button type="button" class="usa-button usx-button usa-button--primary">
504
+ Learn More
505
+ </button>
506
+ </li>
507
+ <li class="usa-button-group__item">
508
+ <button type="button" class="usa-button usx-button usa-button--secondary">
509
+ View Details
510
+ </button>
511
+ </li>
512
+ </ul>
513
+ </div>
514
+ </div>
515
+ </div>
516
+
517
+ <h3 class="site-preview-heading">With Carousel No Dots</h3>
518
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
519
+ <div class="usa-card__container">
520
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
521
+ <div class="usa-card__media">
522
+ <div
523
+ class="usx-carousel usx-card__carousel"
524
+ role="group"
525
+ aria-roledescription="carousel"
526
+ aria-label="Featured content"
527
+ data-show-dots="false"
528
+ >
529
+ <div class="usx-carousel__viewport">
530
+ <div class="usx-carousel__track" aria-live="polite" tabindex="0">
531
+ <section
532
+ id="html-card-with-carousel-no-dots-card-carousel-slide-1"
533
+ class="usx-carousel__slide"
534
+ role="group"
535
+ aria-roledescription="slide"
536
+ aria-label="1 of 3"
537
+ >
538
+ <figure class="usx-image usx-object-fit-cover">
539
+ <img
540
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
541
+ alt="Placeholder image for card"
542
+ />
543
+ <figcaption class="usx-image--caption usa-sr-only">
544
+ This is an image caption.
545
+ </figcaption>
546
+ </figure>
547
+ </section>
548
+ <section
549
+ id="html-card-with-carousel-no-dots-card-carousel-slide-2"
550
+ class="usx-carousel__slide"
551
+ role="group"
552
+ aria-roledescription="slide"
553
+ aria-label="2 of 3"
554
+ >
555
+ <figure class="usx-image usx-object-fit-cover">
556
+ <img
557
+ src="https://picsum.photos/800/300?random=1"
558
+ alt="Placeholder image for card"
559
+ />
560
+ <figcaption class="usx-image--caption usa-sr-only">
561
+ This is another image caption.
562
+ </figcaption>
563
+ </figure>
564
+ </section>
565
+ <section
566
+ id="html-card-with-carousel-no-dots-card-carousel-slide-3"
567
+ class="usx-carousel__slide"
568
+ role="group"
569
+ aria-roledescription="slide"
570
+ aria-label="3 of 3"
571
+ >
572
+ <figure class="usx-image usx-object-fit-cover">
573
+ <img
574
+ src="https://picsum.photos/800/300?random=2"
575
+ alt="Placeholder image for card"
576
+ />
577
+ <figcaption class="usx-image--caption usa-sr-only">
578
+ This is yet another image caption.
579
+ </figcaption>
580
+ </figure>
581
+ </section>
582
+ </div>
583
+ </div>
584
+ </div>
585
+ </div>
586
+ <div class="usa-card__body">
587
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
588
+ </div>
589
+ <div class="usa-card__footer">
590
+ <ul class="usa-button-group usx-button-group flex-wrap">
591
+ <li class="usa-button-group__item">
592
+ <button type="button" class="usa-button usx-button usa-button--primary">
593
+ Learn More
594
+ </button>
595
+ </li>
596
+ <li class="usa-button-group__item">
597
+ <button type="button" class="usa-button usx-button usa-button--secondary">
598
+ View Details
599
+ </button>
600
+ </li>
601
+ </ul>
602
+ </div>
603
+ </div>
604
+ </div>
605
+
606
+ <h3 class="site-preview-heading">With Carousel And Tags</h3>
607
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
608
+ <div class="usa-card__container">
609
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
610
+ <div class="usa-card__media">
611
+ <div
612
+ class="usx-carousel usx-card__carousel"
613
+ role="group"
614
+ aria-roledescription="carousel"
615
+ aria-label="Featured content"
616
+ >
617
+ <div class="usx-carousel__viewport">
618
+ <div class="usx-carousel__track" aria-live="polite" tabindex="0">
619
+ <section
620
+ id="html-card-with-carousel-and-tags-card-carousel-slide-1"
621
+ class="usx-carousel__slide"
622
+ role="group"
623
+ aria-roledescription="slide"
624
+ aria-label="1 of 3"
625
+ >
626
+ <figure class="usx-image usx-object-fit-cover">
627
+ <img
628
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
629
+ alt="Placeholder image for card"
630
+ />
631
+ <figcaption class="usx-image--caption usa-sr-only">
632
+ This is an image caption.
633
+ </figcaption>
634
+ </figure>
635
+ </section>
636
+ <section
637
+ id="html-card-with-carousel-and-tags-card-carousel-slide-2"
638
+ class="usx-carousel__slide"
639
+ role="group"
640
+ aria-roledescription="slide"
641
+ aria-label="2 of 3"
642
+ >
643
+ <figure class="usx-image usx-object-fit-cover">
644
+ <img
645
+ src="https://picsum.photos/800/300?random=1"
646
+ alt="Placeholder image for card"
647
+ />
648
+ <figcaption class="usx-image--caption usa-sr-only">
649
+ This is another image caption.
650
+ </figcaption>
651
+ </figure>
652
+ </section>
653
+ <section
654
+ id="html-card-with-carousel-and-tags-card-carousel-slide-3"
655
+ class="usx-carousel__slide"
656
+ role="group"
657
+ aria-roledescription="slide"
658
+ aria-label="3 of 3"
659
+ >
660
+ <figure class="usx-image usx-object-fit-cover">
661
+ <img
662
+ src="https://picsum.photos/800/300?random=2"
663
+ alt="Placeholder image for card"
664
+ />
665
+ <figcaption class="usx-image--caption usa-sr-only">
666
+ This is yet another image caption.
667
+ </figcaption>
668
+ </figure>
669
+ </section>
670
+ </div>
671
+ </div>
672
+ </div>
673
+ </div>
674
+ <div class="usa-card__body">
675
+ <div class="usx-tag-group">
676
+ <span class="usa-tag usx-tag bg-primary"> Primary</span
677
+ ><span class="usa-tag usx-tag bg-success"> Success</span
678
+ ><span class="usa-tag usx-tag bg-warning"> Warning</span>
60
679
  </div>
680
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
61
681
  </div>
62
682
  <div class="usa-card__footer">
63
- <button class="usa-button usx-button usa-button--primary">Learn More</button>
64
- <button class="usa-button usx-button usa-button--secondary margin-left-1">View Details</button>
683
+ <ul class="usa-button-group usx-button-group flex-wrap">
684
+ <li class="usa-button-group__item">
685
+ <button type="button" class="usa-button usx-button usa-button--primary">
686
+ Learn More
687
+ </button>
688
+ </li>
689
+ <li class="usa-button-group__item">
690
+ <button type="button" class="usa-button usx-button usa-button--secondary">
691
+ View Details
692
+ </button>
693
+ </li>
694
+ </ul>
65
695
  </div>
66
696
  </div>
67
- </div>
697
+ </div>
698
+
699
+ <h3 class="site-preview-heading">With Carousel Flag Layout</h3>
700
+ <div class="usa-card usx-card usa-card--flag tablet:grid-col-8 widescreen:grid-col-6">
701
+ <div class="usa-card__container">
702
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
703
+ <div class="usa-card__media">
704
+ <div
705
+ class="usx-carousel usx-card__carousel"
706
+ role="group"
707
+ aria-roledescription="carousel"
708
+ aria-label="Featured content"
709
+ >
710
+ <div class="usx-carousel__viewport">
711
+ <div class="usx-carousel__track" aria-live="polite" tabindex="0">
712
+ <section
713
+ id="html-card-with-carousel-flag-layout-card-carousel-slide-1"
714
+ class="usx-carousel__slide"
715
+ role="group"
716
+ aria-roledescription="slide"
717
+ aria-label="1 of 3"
718
+ >
719
+ <figure class="usx-image usx-object-fit-cover">
720
+ <img
721
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
722
+ alt="Placeholder image for card"
723
+ />
724
+ <figcaption class="usx-image--caption usa-sr-only">
725
+ This is an image caption.
726
+ </figcaption>
727
+ </figure>
728
+ </section>
729
+ <section
730
+ id="html-card-with-carousel-flag-layout-card-carousel-slide-2"
731
+ class="usx-carousel__slide"
732
+ role="group"
733
+ aria-roledescription="slide"
734
+ aria-label="2 of 3"
735
+ >
736
+ <figure class="usx-image usx-object-fit-cover">
737
+ <img
738
+ src="https://picsum.photos/800/300?random=1"
739
+ alt="Placeholder image for card"
740
+ />
741
+ <figcaption class="usx-image--caption usa-sr-only">
742
+ This is another image caption.
743
+ </figcaption>
744
+ </figure>
745
+ </section>
746
+ <section
747
+ id="html-card-with-carousel-flag-layout-card-carousel-slide-3"
748
+ class="usx-carousel__slide"
749
+ role="group"
750
+ aria-roledescription="slide"
751
+ aria-label="3 of 3"
752
+ >
753
+ <figure class="usx-image usx-object-fit-cover">
754
+ <img
755
+ src="https://picsum.photos/800/300?random=2"
756
+ alt="Placeholder image for card"
757
+ />
758
+ <figcaption class="usx-image--caption usa-sr-only">
759
+ This is yet another image caption.
760
+ </figcaption>
761
+ </figure>
762
+ </section>
763
+ </div>
764
+ </div>
765
+ </div>
766
+ </div>
767
+ <div class="usa-card__body">
768
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
769
+ </div>
770
+ <div class="usa-card__footer">
771
+ <ul class="usa-button-group usx-button-group flex-wrap">
772
+ <li class="usa-button-group__item">
773
+ <button type="button" class="usa-button usx-button usa-button--primary">
774
+ Learn More
775
+ </button>
776
+ </li>
777
+ <li class="usa-button-group__item">
778
+ <button type="button" class="usa-button usx-button usa-button--secondary">
779
+ View Details
780
+ </button>
781
+ </li>
782
+ </ul>
783
+ </div>
784
+ </div>
785
+ </div>
786
+
787
+ <h3 class="site-preview-heading">Minimal</h3>
788
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
789
+ <div class="usa-card__container">
790
+ <div class="usa-card__header"><h4 class="usa-card__heading">Simple Card</h4></div>
791
+ <div class="usa-card__body"><p>Just the basics.</p></div>
792
+ </div>
793
+ </div>
794
+
795
+ <h3 class="site-preview-heading">Full Featured</h3>
796
+ <div
797
+ class="usa-card usx-card usa-card--header-first usa-card--flag usa-card--media-right tablet:grid-col-8 widescreen:grid-col-6"
798
+ >
799
+ <div class="usa-card__container">
800
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
801
+ <div class="usa-card__media usa-card__media--inset">
802
+ <div
803
+ class="usx-carousel usx-card__carousel"
804
+ role="group"
805
+ aria-roledescription="carousel"
806
+ aria-label="Featured content"
807
+ >
808
+ <div class="usx-carousel__viewport">
809
+ <div class="usx-carousel__track" aria-live="polite" tabindex="0">
810
+ <section
811
+ id="html-card-full-featured-card-carousel-slide-1"
812
+ class="usx-carousel__slide"
813
+ role="group"
814
+ aria-roledescription="slide"
815
+ aria-label="1 of 3"
816
+ >
817
+ <figure class="usx-image usx-object-fit-cover">
818
+ <img
819
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
820
+ alt="Placeholder image for card"
821
+ />
822
+ <figcaption class="usx-image--caption usa-sr-only">
823
+ This is an image caption.
824
+ </figcaption>
825
+ </figure>
826
+ </section>
827
+ <section
828
+ id="html-card-full-featured-card-carousel-slide-2"
829
+ class="usx-carousel__slide"
830
+ role="group"
831
+ aria-roledescription="slide"
832
+ aria-label="2 of 3"
833
+ >
834
+ <figure class="usx-image usx-object-fit-cover">
835
+ <img
836
+ src="https://picsum.photos/800/300?random=1"
837
+ alt="Placeholder image for card"
838
+ />
839
+ <figcaption class="usx-image--caption usa-sr-only">
840
+ This is another image caption.
841
+ </figcaption>
842
+ </figure>
843
+ </section>
844
+ <section
845
+ id="html-card-full-featured-card-carousel-slide-3"
846
+ class="usx-carousel__slide"
847
+ role="group"
848
+ aria-roledescription="slide"
849
+ aria-label="3 of 3"
850
+ >
851
+ <figure class="usx-image usx-object-fit-cover">
852
+ <img
853
+ src="https://picsum.photos/800/300?random=2"
854
+ alt="Placeholder image for card"
855
+ />
856
+ <figcaption class="usx-image--caption usa-sr-only">
857
+ This is yet another image caption.
858
+ </figcaption>
859
+ </figure>
860
+ </section>
861
+ </div>
862
+ </div>
863
+ </div>
864
+ </div>
865
+ <div class="usa-card__body">
866
+ <div class="usx-tag-group">
867
+ <span class="usa-tag usx-tag bg-primary"> Primary</span
868
+ ><span class="usa-tag usx-tag bg-success"> Success</span
869
+ ><span class="usa-tag usx-tag bg-warning"> Warning</span>
870
+ </div>
871
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
872
+ </div>
873
+ <div class="usa-card__footer">
874
+ <ul class="usa-button-group usx-button-group flex-wrap">
875
+ <li class="usa-button-group__item">
876
+ <button type="button" class="usa-button usx-button usa-button--primary">
877
+ Learn More
878
+ </button>
879
+ </li>
880
+ <li class="usa-button-group__item">
881
+ <button type="button" class="usa-button usx-button usa-button--secondary">
882
+ View Details
883
+ </button>
884
+ </li>
885
+ </ul>
886
+ </div>
887
+ </div>
888
+ </div>
889
+
890
+ <h3 class="site-preview-heading">Images With Object Fit Contain</h3>
891
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
892
+ <div class="usa-card__container">
893
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
894
+ <div class="usa-card__media">
895
+ <div
896
+ class="usx-carousel usx-card__carousel"
897
+ role="group"
898
+ aria-roledescription="carousel"
899
+ aria-label="Featured content"
900
+ >
901
+ <div class="usx-carousel__viewport">
902
+ <div class="usx-carousel__track" aria-live="polite" tabindex="0">
903
+ <section
904
+ id="html-card-images-with-object-fit-contain-card-carousel-slide-1"
905
+ class="usx-carousel__slide"
906
+ role="group"
907
+ aria-roledescription="slide"
908
+ aria-label="1 of 3"
909
+ >
910
+ <figure class="usx-image usx-object-fit-contain">
911
+ <img
912
+ src="https://picsum.photos/800/300?random=1"
913
+ alt="Placeholder image for card"
914
+ />
915
+ <figcaption class="usx-image--caption usa-sr-only">
916
+ This is another image caption.
917
+ </figcaption>
918
+ </figure>
919
+ </section>
920
+ <section
921
+ id="html-card-images-with-object-fit-contain-card-carousel-slide-2"
922
+ class="usx-carousel__slide"
923
+ role="group"
924
+ aria-roledescription="slide"
925
+ aria-label="2 of 3"
926
+ >
927
+ <figure class="usx-image usx-object-fit-contain">
928
+ <img
929
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
930
+ alt="Placeholder image for card"
931
+ />
932
+ <figcaption class="usx-image--caption usa-sr-only">
933
+ This is an image caption.
934
+ </figcaption>
935
+ </figure>
936
+ </section>
937
+ <section
938
+ id="html-card-images-with-object-fit-contain-card-carousel-slide-3"
939
+ class="usx-carousel__slide"
940
+ role="group"
941
+ aria-roledescription="slide"
942
+ aria-label="3 of 3"
943
+ >
944
+ <figure class="usx-image usx-object-fit-contain">
945
+ <img
946
+ src="https://picsum.photos/800/300?random=2"
947
+ alt="Placeholder image for card"
948
+ />
949
+ <figcaption class="usx-image--caption usa-sr-only">
950
+ This is yet another image caption.
951
+ </figcaption>
952
+ </figure>
953
+ </section>
954
+ </div>
955
+ </div>
956
+ </div>
957
+ </div>
958
+ <div class="usa-card__body">
959
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
960
+ </div>
961
+ <div class="usa-card__footer">
962
+ <ul class="usa-button-group usx-button-group flex-wrap">
963
+ <li class="usa-button-group__item">
964
+ <button type="button" class="usa-button usx-button usa-button--primary">
965
+ Learn More
966
+ </button>
967
+ </li>
968
+ <li class="usa-button-group__item">
969
+ <button type="button" class="usa-button usx-button usa-button--secondary">
970
+ View Details
971
+ </button>
972
+ </li>
973
+ </ul>
974
+ </div>
975
+ </div>
976
+ </div>
977
+
978
+ <h3 class="site-preview-heading">Images With Object Fit Fill</h3>
979
+ <div class="usa-card usx-card tablet:grid-col-8 widescreen:grid-col-6">
980
+ <div class="usa-card__container">
981
+ <div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
982
+ <div class="usa-card__media">
983
+ <div
984
+ class="usx-carousel usx-card__carousel"
985
+ role="group"
986
+ aria-roledescription="carousel"
987
+ aria-label="Featured content"
988
+ >
989
+ <div class="usx-carousel__viewport">
990
+ <div class="usx-carousel__track" aria-live="polite" tabindex="0">
991
+ <section
992
+ id="html-card-images-with-object-fit-fill-card-carousel-slide-1"
993
+ class="usx-carousel__slide"
994
+ role="group"
995
+ aria-roledescription="slide"
996
+ aria-label="1 of 3"
997
+ >
998
+ <figure class="usx-image usx-object-fit-fill">
999
+ <img
1000
+ src="https://picsum.photos/800/300?random=1"
1001
+ alt="Placeholder image for card"
1002
+ />
1003
+ <figcaption class="usx-image--caption usa-sr-only">
1004
+ This is another image caption.
1005
+ </figcaption>
1006
+ </figure>
1007
+ </section>
1008
+ <section
1009
+ id="html-card-images-with-object-fit-fill-card-carousel-slide-2"
1010
+ class="usx-carousel__slide"
1011
+ role="group"
1012
+ aria-roledescription="slide"
1013
+ aria-label="2 of 3"
1014
+ >
1015
+ <figure class="usx-image usx-object-fit-fill">
1016
+ <img
1017
+ src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
1018
+ alt="Placeholder image for card"
1019
+ />
1020
+ <figcaption class="usx-image--caption usa-sr-only">
1021
+ This is an image caption.
1022
+ </figcaption>
1023
+ </figure>
1024
+ </section>
1025
+ <section
1026
+ id="html-card-images-with-object-fit-fill-card-carousel-slide-3"
1027
+ class="usx-carousel__slide"
1028
+ role="group"
1029
+ aria-roledescription="slide"
1030
+ aria-label="3 of 3"
1031
+ >
1032
+ <figure class="usx-image usx-object-fit-fill">
1033
+ <img
1034
+ src="https://picsum.photos/800/300?random=2"
1035
+ alt="Placeholder image for card"
1036
+ />
1037
+ <figcaption class="usx-image--caption usa-sr-only">
1038
+ This is yet another image caption.
1039
+ </figcaption>
1040
+ </figure>
1041
+ </section>
1042
+ </div>
1043
+ </div>
1044
+ </div>
1045
+ </div>
1046
+ <div class="usa-card__body">
1047
+ <p>This is the main content of the card. It can contain text, links, or other elements.</p>
1048
+ </div>
1049
+ <div class="usa-card__footer">
1050
+ <ul class="usa-button-group usx-button-group flex-wrap">
1051
+ <li class="usa-button-group__item">
1052
+ <button type="button" class="usa-button usx-button usa-button--primary">
1053
+ Learn More
1054
+ </button>
1055
+ </li>
1056
+ <li class="usa-button-group__item">
1057
+ <button type="button" class="usa-button usx-button usa-button--secondary">
1058
+ View Details
1059
+ </button>
1060
+ </li>
1061
+ </ul>
1062
+ </div>
1063
+ </div>
1064
+ </div>