@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.
- package/dist/index.cjs +231 -98
- package/dist/index.js +231 -98
- package/package.json +5 -5
- package/src/components/accordion/accordion.html +596 -291
- package/src/components/alert/alert.html +112 -148
- package/src/components/attribution/attribution.html +50 -21
- package/src/components/avatar/avatar.html +86 -51
- package/src/components/breadcrumb/breadcrumb.html +45 -66
- package/src/components/button/button.html +363 -226
- package/src/components/callout/Callout.tsx +1 -2
- package/src/components/callout/callout.django.html +2 -2
- package/src/components/callout/callout.html +0 -5
- package/src/components/callout/config.json +1 -5
- package/src/components/card/Card.tsx +6 -3
- package/src/components/card/card.django.html +2 -2
- package/src/components/card/card.html +1032 -35
- package/src/components/card/config.json +6 -2
- package/src/components/card-group/card-group.html +388 -95
- package/src/components/carousel/Carousel.tsx +42 -71
- package/src/components/carousel/carousel.django.html +22 -46
- package/src/components/carousel/carousel.html +715 -32
- package/src/components/carousel/config.json +25 -12
- package/src/components/character-count/character-count.html +231 -26
- package/src/components/checkbox/checkbox.html +313 -241
- package/src/components/checkbox-group/checkbox-group.html +346 -26
- package/src/components/clickable/clickable.html +168 -83
- package/src/components/code/Code.tsx +4 -3
- package/src/components/code/code.django.html +1 -1
- package/src/components/code/config.json +4 -0
- package/src/components/collection/collection.html +203 -379
- package/src/components/combobox/combobox.html +21 -9
- package/src/components/container/container.html +2616 -80
- package/src/components/copy-to-clipboard/copy-to-clipboard.html +48 -20
- package/src/components/details/Details.tsx +69 -0
- package/src/components/details/config.json +73 -0
- package/src/components/details/details.django.html +7 -0
- package/src/components/details/details.html +186 -0
- package/src/components/error-message/error-message.html +15 -2
- package/src/components/error-page/ErrorPage.tsx +169 -0
- package/src/components/error-page/config.json +152 -0
- package/src/components/error-page/error-page.django.html +80 -0
- package/src/components/error-page/error-page.html +437 -0
- package/src/components/eyebrow/eyebrow.html +8 -4
- package/src/components/fieldset/fieldset.html +33 -7
- package/src/components/file-input/file-input.html +310 -31
- package/src/components/file-list/file-list.html +191 -7
- package/src/components/footer/footer.html +611 -232
- package/src/components/header/header.html +2553 -611
- package/src/components/hero/hero.html +300 -38
- package/src/components/hint/hint.html +7 -2
- package/src/components/identifier/identifier.html +483 -255
- package/src/components/image/Image.tsx +2 -2
- package/src/components/image/image.django.html +4 -10
- package/src/components/image/image.html +144 -29
- package/src/components/indicator/indicator.html +25 -23
- package/src/components/label/label.html +15 -16
- package/src/components/language-selector/language-selector.html +74 -25
- package/src/components/layout/layout.html +991 -21
- package/src/components/legend/legend.html +10 -9
- package/src/components/list/list.html +45 -25
- package/src/components/page/Page.tsx +15 -2
- package/src/components/page/config.json +13 -1
- package/src/components/page/page.django.html +2 -2
- package/src/components/page/page.html +29 -8
- package/src/components/pagination/pagination.html +907 -305
- package/src/components/prose/prose.html +244 -85
- package/src/components/quote/Quote.tsx +1 -1
- package/src/components/quote/config.json +1 -2
- package/src/components/quote/quote.html +2 -7
- package/src/components/radio-buttons/radio-buttons.html +623 -127
- package/src/components/required/required.html +3 -4
- package/src/components/search/search.html +336 -54
- package/src/components/section/section.html +73 -11
- package/src/components/select/select.html +112 -58
- package/src/components/skipnav/skipnav.html +40 -1
- package/src/components/spinner/spinner.html +143 -23
- package/src/components/step-indicator/step-indicator.html +26 -68
- package/src/components/swap/swap.html +99 -154
- package/src/components/table/table.html +2168 -988
- package/src/components/tag/tag.html +73 -17
- package/src/components/task-list/task-list.html +252 -15
- package/src/components/theme-picker/theme-picker.html +26 -8
- package/src/components/toggle/toggle.html +64 -5
- package/src/index.js +2 -0
|
@@ -1,38 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carousel",
|
|
3
3
|
"template": "carousel/carousel.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 3,
|
|
5
5
|
"props": {
|
|
6
6
|
"id": {
|
|
7
7
|
"type": "string",
|
|
8
|
-
"
|
|
9
|
-
"description": "Base id for slides and anchors"
|
|
8
|
+
"description": "Optional ID for the carousel region"
|
|
10
9
|
},
|
|
11
10
|
"slides": {
|
|
12
11
|
"type": "array",
|
|
13
|
-
"description": "
|
|
12
|
+
"description": "Slides with content and an optional accessible label; image props can also be used in Django",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"description": "Content and accessible name for one slide",
|
|
16
|
+
"properties": {
|
|
17
|
+
"content": { "type": "slot", "description": "Rendered content of the slide" },
|
|
18
|
+
"label": { "type": "string", "description": "Optional accessible name for the slide" }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
14
21
|
},
|
|
15
22
|
"children": {
|
|
16
23
|
"type": "slot",
|
|
17
|
-
"description": "
|
|
18
|
-
},
|
|
19
|
-
"slideIds": {
|
|
20
|
-
"type": "array",
|
|
21
|
-
"description": "Anchor targets used for dot navigation when children are provided."
|
|
24
|
+
"description": "Each child becomes a slide; Django children may be pre-rendered HTML or an array of HTML fragments"
|
|
22
25
|
},
|
|
23
26
|
"ariaLabel": {
|
|
24
27
|
"type": "string",
|
|
25
28
|
"default": "Featured content",
|
|
26
|
-
"description": "
|
|
29
|
+
"description": "Accessible name for the carousel"
|
|
30
|
+
},
|
|
31
|
+
"role": {
|
|
32
|
+
"type": "select",
|
|
33
|
+
"options": ["region", "group"],
|
|
34
|
+
"default": "region",
|
|
35
|
+
"description": "Use group for a carousel nested in another component"
|
|
27
36
|
},
|
|
28
37
|
"showDots": {
|
|
29
38
|
"type": "boolean",
|
|
30
39
|
"default": true,
|
|
31
|
-
"description": "
|
|
40
|
+
"description": "Show slide selection buttons when there are multiple slides; hidden buttons appear on focus"
|
|
41
|
+
},
|
|
42
|
+
"statusClassName": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Additional classes for the slide status element"
|
|
32
45
|
},
|
|
33
46
|
"className": {
|
|
34
47
|
"type": "string",
|
|
35
|
-
"description": "Additional classes
|
|
48
|
+
"description": "Additional classes for the carousel region"
|
|
36
49
|
}
|
|
37
50
|
}
|
|
38
51
|
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
<!-- Plain
|
|
2
|
-
<!-- @uswds/uswds/js/usa-character-count at runtime (call ONLY -->
|
|
3
|
-
<!-- characterCount.init(), never .on()/.off()) to move `maxlength` to -->
|
|
4
|
-
<!-- `data-maxlength`, hide the fallback message below, and manage the live -->
|
|
5
|
-
<!-- count/over-limit state itself. -->
|
|
1
|
+
<!-- Plain markup: the HTML story initializes USWDS characterCount.init() at runtime. -->
|
|
6
2
|
|
|
7
3
|
<!-- Default -->
|
|
8
4
|
<div class="usa-character-count usx-character-count">
|
|
@@ -18,11 +14,59 @@
|
|
|
18
14
|
<span id="cc-1-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
19
15
|
</div>
|
|
20
16
|
|
|
21
|
-
<!--
|
|
17
|
+
<!-- Text Area -->
|
|
18
|
+
<div class="usa-character-count usx-character-count">
|
|
19
|
+
<div class="usa-form-group usx-form-group">
|
|
20
|
+
<label class="usa-label usx-label" for="cc-4">Text area</label>
|
|
21
|
+
<textarea
|
|
22
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
23
|
+
id="cc-4"
|
|
24
|
+
maxlength="50"
|
|
25
|
+
aria-describedby="cc-4-info"
|
|
26
|
+
></textarea>
|
|
27
|
+
</div>
|
|
28
|
+
<span id="cc-4-info" class="usa-character-count__message">You can enter up to 50 characters</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<!-- With Placeholder -->
|
|
32
|
+
<div class="usa-character-count usx-character-count">
|
|
33
|
+
<div class="usa-form-group usx-form-group">
|
|
34
|
+
<label class="usa-label usx-label" for="cc-17">Text input with placeholder</label>
|
|
35
|
+
<input
|
|
36
|
+
class="usa-input usx-input usa-character-count__field"
|
|
37
|
+
id="cc-17"
|
|
38
|
+
maxlength="25"
|
|
39
|
+
aria-describedby="cc-17-info"
|
|
40
|
+
placeholder="Enter text here"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
<span id="cc-17-info" class="usa-character-count__message"
|
|
44
|
+
>You can enter up to 25 characters</span
|
|
45
|
+
>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<!-- Text Area With Placeholder -->
|
|
49
|
+
<div class="usa-character-count usx-character-count">
|
|
50
|
+
<div class="usa-form-group usx-form-group">
|
|
51
|
+
<label class="usa-label usx-label" for="cc-18">Text area with placeholder</label>
|
|
52
|
+
<textarea
|
|
53
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
54
|
+
id="cc-18"
|
|
55
|
+
maxlength="50"
|
|
56
|
+
aria-describedby="cc-18-info"
|
|
57
|
+
placeholder="Enter text here"
|
|
58
|
+
></textarea>
|
|
59
|
+
</div>
|
|
60
|
+
<span id="cc-18-info" class="usa-character-count__message"
|
|
61
|
+
>You can enter up to 50 characters</span
|
|
62
|
+
>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<!-- With Hint -->
|
|
22
66
|
<div class="usa-character-count usx-character-count">
|
|
23
67
|
<div class="usa-form-group usx-form-group">
|
|
24
68
|
<label class="usa-label usx-label" for="cc-3">Text input with hint</label>
|
|
25
|
-
<span
|
|
69
|
+
<span class="usa-hint usx-hint" id="cc-3-hint">You can enter up to 25 characters.</span>
|
|
26
70
|
<input
|
|
27
71
|
class="usa-input usx-input usa-character-count__field"
|
|
28
72
|
id="cc-3"
|
|
@@ -33,26 +77,27 @@
|
|
|
33
77
|
<span id="cc-3-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
34
78
|
</div>
|
|
35
79
|
|
|
36
|
-
<!--
|
|
80
|
+
<!-- Text Area With Hint -->
|
|
37
81
|
<div class="usa-character-count usx-character-count">
|
|
38
82
|
<div class="usa-form-group usx-form-group">
|
|
39
|
-
<label class="usa-label usx-label" for="cc-
|
|
83
|
+
<label class="usa-label usx-label" for="cc-2">Text area with hint</label>
|
|
84
|
+
<span class="usa-hint usx-hint" id="cc-2-hint">You can enter up to 50 characters.</span>
|
|
40
85
|
<textarea
|
|
41
86
|
class="usa-textarea usx-textarea usa-character-count__field"
|
|
42
|
-
id="cc-
|
|
87
|
+
id="cc-2"
|
|
43
88
|
maxlength="50"
|
|
44
|
-
aria-describedby="cc-
|
|
89
|
+
aria-describedby="cc-2-info cc-2-hint"
|
|
45
90
|
></textarea>
|
|
46
91
|
</div>
|
|
47
|
-
<span id="cc-
|
|
92
|
+
<span id="cc-2-info" class="usa-character-count__message">You can enter up to 50 characters</span>
|
|
48
93
|
</div>
|
|
49
94
|
|
|
50
95
|
<!-- Required -->
|
|
51
96
|
<div class="usa-character-count usx-character-count">
|
|
52
97
|
<div class="usa-form-group usx-form-group">
|
|
53
|
-
<label class="usa-label usx-label" for="cc-6"
|
|
54
|
-
|
|
55
|
-
|
|
98
|
+
<label class="usa-label usx-label" for="cc-6"
|
|
99
|
+
><abbr title="Required" class="usx-required">*</abbr> Required field</label
|
|
100
|
+
>
|
|
56
101
|
<input
|
|
57
102
|
class="usa-input usx-input usa-character-count__field"
|
|
58
103
|
id="cc-6"
|
|
@@ -64,7 +109,24 @@
|
|
|
64
109
|
<span id="cc-6-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
65
110
|
</div>
|
|
66
111
|
|
|
67
|
-
<!--
|
|
112
|
+
<!-- Text Area Required -->
|
|
113
|
+
<div class="usa-character-count usx-character-count">
|
|
114
|
+
<div class="usa-form-group usx-form-group">
|
|
115
|
+
<label class="usa-label usx-label" for="cc-5"
|
|
116
|
+
><abbr title="Required" class="usx-required">*</abbr> Text area required field</label
|
|
117
|
+
>
|
|
118
|
+
<textarea
|
|
119
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
120
|
+
id="cc-5"
|
|
121
|
+
maxlength="50"
|
|
122
|
+
aria-describedby="cc-5-info"
|
|
123
|
+
required
|
|
124
|
+
></textarea>
|
|
125
|
+
</div>
|
|
126
|
+
<span id="cc-5-info" class="usa-character-count__message">You can enter up to 50 characters</span>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<!-- Success State -->
|
|
68
130
|
<div class="usa-character-count usx-character-count">
|
|
69
131
|
<div class="usa-form-group usx-form-group">
|
|
70
132
|
<label class="usa-label usx-label" for="cc-7">Success state</label>
|
|
@@ -74,37 +136,180 @@
|
|
|
74
136
|
maxlength="25"
|
|
75
137
|
aria-describedby="cc-7-info cc-7-success"
|
|
76
138
|
/>
|
|
77
|
-
<span
|
|
139
|
+
<span class="usa-success-message" id="cc-7-success" role="status">Looks good!</span>
|
|
78
140
|
</div>
|
|
79
141
|
<span id="cc-7-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
80
142
|
</div>
|
|
81
143
|
|
|
144
|
+
<!-- Text Area Success State -->
|
|
145
|
+
<div class="usa-character-count usx-character-count">
|
|
146
|
+
<div class="usa-form-group usx-form-group">
|
|
147
|
+
<label class="usa-label usx-label" for="cc-8">Text area success state</label>
|
|
148
|
+
<textarea
|
|
149
|
+
class="usa-textarea usx-textarea usa-character-count__field usa-input--success"
|
|
150
|
+
id="cc-8"
|
|
151
|
+
maxlength="50"
|
|
152
|
+
aria-describedby="cc-8-info cc-8-success"
|
|
153
|
+
></textarea>
|
|
154
|
+
<span class="usa-success-message" id="cc-8-success" role="status">Looks good!</span>
|
|
155
|
+
</div>
|
|
156
|
+
<span id="cc-8-info" class="usa-character-count__message">You can enter up to 50 characters</span>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<!-- Error State -->
|
|
160
|
+
<div class="usa-character-count usx-character-count">
|
|
161
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
162
|
+
<label class="usa-label usx-label usa-label--error" for="cc-9">Error state</label>
|
|
163
|
+
<span class="usa-error-message usx-error-message" id="cc-9-error" role="alert"
|
|
164
|
+
>This field has an error.</span
|
|
165
|
+
>
|
|
166
|
+
<input
|
|
167
|
+
class="usa-input usx-input usa-character-count__field usa-input--error"
|
|
168
|
+
id="cc-9"
|
|
169
|
+
maxlength="25"
|
|
170
|
+
aria-describedby="cc-9-info cc-9-error"
|
|
171
|
+
/>
|
|
172
|
+
</div>
|
|
173
|
+
<span id="cc-9-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<!-- Text Area Error State -->
|
|
177
|
+
<div class="usa-character-count usx-character-count">
|
|
178
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
179
|
+
<label class="usa-label usx-label usa-label--error" for="cc-10">Text area error state</label>
|
|
180
|
+
<span class="usa-error-message usx-error-message" id="cc-10-error" role="alert"
|
|
181
|
+
>This field has an error.</span
|
|
182
|
+
>
|
|
183
|
+
<textarea
|
|
184
|
+
class="usa-textarea usx-textarea usa-character-count__field usa-input--error"
|
|
185
|
+
id="cc-10"
|
|
186
|
+
maxlength="50"
|
|
187
|
+
aria-describedby="cc-10-info cc-10-error"
|
|
188
|
+
></textarea>
|
|
189
|
+
</div>
|
|
190
|
+
<span id="cc-10-info" class="usa-character-count__message"
|
|
191
|
+
>You can enter up to 50 characters</span
|
|
192
|
+
>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
82
195
|
<!-- Disabled -->
|
|
83
196
|
<div class="usa-character-count usx-character-count">
|
|
84
197
|
<div class="usa-form-group usx-form-group">
|
|
85
|
-
<label class="usa-label usx-label" for="cc-
|
|
198
|
+
<label class="usa-label usx-label" for="cc-12">Disabled field</label>
|
|
86
199
|
<input
|
|
87
200
|
class="usa-input usx-input usa-character-count__field"
|
|
88
|
-
id="cc-
|
|
201
|
+
id="cc-12"
|
|
89
202
|
maxlength="25"
|
|
90
|
-
aria-describedby="cc-
|
|
203
|
+
aria-describedby="cc-12-info"
|
|
91
204
|
disabled
|
|
92
205
|
/>
|
|
93
206
|
</div>
|
|
94
|
-
<span id="cc-
|
|
207
|
+
<span id="cc-12-info" class="usa-character-count__message"
|
|
208
|
+
>You can enter up to 25 characters</span
|
|
209
|
+
>
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
<!-- Text Area Disabled -->
|
|
213
|
+
<div class="usa-character-count usx-character-count">
|
|
214
|
+
<div class="usa-form-group usx-form-group">
|
|
215
|
+
<label class="usa-label usx-label" for="cc-14">Text area disabled field</label>
|
|
216
|
+
<textarea
|
|
217
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
218
|
+
id="cc-14"
|
|
219
|
+
maxlength="50"
|
|
220
|
+
aria-describedby="cc-14-info"
|
|
221
|
+
disabled
|
|
222
|
+
></textarea>
|
|
223
|
+
</div>
|
|
224
|
+
<span id="cc-14-info" class="usa-character-count__message"
|
|
225
|
+
>You can enter up to 50 characters</span
|
|
226
|
+
>
|
|
95
227
|
</div>
|
|
96
228
|
|
|
97
|
-
<!--
|
|
229
|
+
<!-- Default Value -->
|
|
98
230
|
<div class="usa-character-count usx-character-count">
|
|
99
231
|
<div class="usa-form-group usx-form-group">
|
|
100
|
-
<label class="usa-label usx-label" for="cc-
|
|
232
|
+
<label class="usa-label usx-label" for="cc-11">Pre-filled with default value</label>
|
|
101
233
|
<input
|
|
102
234
|
class="usa-input usx-input usa-character-count__field"
|
|
103
|
-
id="cc-
|
|
235
|
+
id="cc-11"
|
|
104
236
|
maxlength="25"
|
|
105
|
-
aria-describedby="cc-
|
|
237
|
+
aria-describedby="cc-11-info"
|
|
238
|
+
value="Default value"
|
|
239
|
+
/>
|
|
240
|
+
</div>
|
|
241
|
+
<span id="cc-11-info" class="usa-character-count__message"
|
|
242
|
+
>You can enter up to 25 characters</span
|
|
243
|
+
>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
<!-- Text Area Default Value -->
|
|
247
|
+
<div class="usa-character-count usx-character-count">
|
|
248
|
+
<div class="usa-form-group usx-form-group">
|
|
249
|
+
<label class="usa-label usx-label" for="cc-15">Text area pre-filled with default value</label>
|
|
250
|
+
<textarea
|
|
251
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
252
|
+
id="cc-15"
|
|
253
|
+
maxlength="50"
|
|
254
|
+
aria-describedby="cc-15-info"
|
|
255
|
+
>
|
|
256
|
+
Default value</textarea
|
|
257
|
+
>
|
|
258
|
+
</div>
|
|
259
|
+
<span id="cc-15-info" class="usa-character-count__message"
|
|
260
|
+
>You can enter up to 50 characters</span
|
|
261
|
+
>
|
|
262
|
+
</div>
|
|
263
|
+
|
|
264
|
+
<!-- Default Value Over Limit -->
|
|
265
|
+
<div class="usa-alert usx-alert usa-alert--warning">
|
|
266
|
+
<div class="usa-alert__body">
|
|
267
|
+
<h4 class="usa-alert__heading">Known Issue</h4>
|
|
268
|
+
<p class="usa-alert__text">
|
|
269
|
+
USWDS does not currently handle a default value that exceeds the character limit.
|
|
270
|
+
</p>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
<div class="usa-character-count usx-character-count">
|
|
274
|
+
<div class="usa-form-group usx-form-group">
|
|
275
|
+
<label class="usa-label usx-label" for="cc-13">Pre-filled, already over the limit</label>
|
|
276
|
+
<input
|
|
277
|
+
class="usa-input usx-input usa-character-count__field"
|
|
278
|
+
id="cc-13"
|
|
279
|
+
maxlength="25"
|
|
280
|
+
aria-describedby="cc-13-info"
|
|
106
281
|
value="This default value is already way too long for the limit."
|
|
107
282
|
/>
|
|
108
283
|
</div>
|
|
109
|
-
<span id="cc-
|
|
284
|
+
<span id="cc-13-info" class="usa-character-count__message"
|
|
285
|
+
>You can enter up to 25 characters</span
|
|
286
|
+
>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<!-- Text Area Default Value Over Limit -->
|
|
290
|
+
<div class="usa-alert usx-alert usa-alert--warning">
|
|
291
|
+
<div class="usa-alert__body">
|
|
292
|
+
<h4 class="usa-alert__heading">Known Issue</h4>
|
|
293
|
+
<p class="usa-alert__text">
|
|
294
|
+
USWDS does not currently handle a default value that exceeds the character limit.
|
|
295
|
+
</p>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
<div class="usa-character-count usx-character-count">
|
|
299
|
+
<div class="usa-form-group usx-form-group">
|
|
300
|
+
<label class="usa-label usx-label" for="cc-16"
|
|
301
|
+
>Text area pre-filled, already over the limit</label
|
|
302
|
+
>
|
|
303
|
+
<textarea
|
|
304
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
305
|
+
id="cc-16"
|
|
306
|
+
maxlength="50"
|
|
307
|
+
aria-describedby="cc-16-info"
|
|
308
|
+
>
|
|
309
|
+
Despite the text area providing more space, this default value is already way too long for the limit.</textarea
|
|
310
|
+
>
|
|
311
|
+
</div>
|
|
312
|
+
<span id="cc-16-info" class="usa-character-count__message"
|
|
313
|
+
>You can enter up to 50 characters</span
|
|
314
|
+
>
|
|
110
315
|
</div>
|