@aurodesignsystem-dev/auro-formkit 0.0.0-pr593.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 (268) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +2 -0
  4. package/README.md +314 -0
  5. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +39 -0
  6. package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
  7. package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
  8. package/components/bibtemplate/dist/index.d.ts +2 -0
  9. package/components/bibtemplate/dist/index.js +709 -0
  10. package/components/bibtemplate/dist/registered.js +709 -0
  11. package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
  12. package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
  13. package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
  14. package/components/checkbox/README.md +142 -0
  15. package/components/checkbox/demo/api.html +55 -0
  16. package/components/checkbox/demo/api.js +17 -0
  17. package/components/checkbox/demo/api.md +401 -0
  18. package/components/checkbox/demo/api.min.js +1833 -0
  19. package/components/checkbox/demo/index.html +51 -0
  20. package/components/checkbox/demo/index.js +8 -0
  21. package/components/checkbox/demo/index.md +327 -0
  22. package/components/checkbox/demo/index.min.js +1808 -0
  23. package/components/checkbox/demo/readme.html +50 -0
  24. package/components/checkbox/demo/readme.md +142 -0
  25. package/components/checkbox/dist/auro-checkbox-group.d.ts +166 -0
  26. package/components/checkbox/dist/auro-checkbox.d.ts +129 -0
  27. package/components/checkbox/dist/helptextVersion.d.ts +2 -0
  28. package/components/checkbox/dist/index.d.ts +3 -0
  29. package/components/checkbox/dist/index.js +1757 -0
  30. package/components/checkbox/dist/registered.js +1758 -0
  31. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
  32. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
  33. package/components/checkbox/dist/styles/color-css.d.ts +2 -0
  34. package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
  35. package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
  36. package/components/combobox/README.md +152 -0
  37. package/components/combobox/demo/api.html +57 -0
  38. package/components/combobox/demo/api.js +36 -0
  39. package/components/combobox/demo/api.md +1209 -0
  40. package/components/combobox/demo/api.min.js +15117 -0
  41. package/components/combobox/demo/index.html +56 -0
  42. package/components/combobox/demo/index.js +26 -0
  43. package/components/combobox/demo/index.md +621 -0
  44. package/components/combobox/demo/index.min.js +14971 -0
  45. package/components/combobox/demo/readme.html +50 -0
  46. package/components/combobox/demo/readme.md +152 -0
  47. package/components/combobox/dist/auro-combobox.d.ts +384 -0
  48. package/components/combobox/dist/bibtemplateVersion.d.ts +2 -0
  49. package/components/combobox/dist/dropdownVersion.d.ts +2 -0
  50. package/components/combobox/dist/index.d.ts +2 -0
  51. package/components/combobox/dist/index.js +13554 -0
  52. package/components/combobox/dist/inputVersion.d.ts +2 -0
  53. package/components/combobox/dist/registered.js +13556 -0
  54. package/components/combobox/dist/styles/style-css.d.ts +2 -0
  55. package/components/counter/README.md +146 -0
  56. package/components/counter/demo/api.html +54 -0
  57. package/components/counter/demo/api.js +20 -0
  58. package/components/counter/demo/api.md +584 -0
  59. package/components/counter/demo/api.min.js +7111 -0
  60. package/components/counter/demo/index.html +54 -0
  61. package/components/counter/demo/index.js +21 -0
  62. package/components/counter/demo/index.md +244 -0
  63. package/components/counter/demo/index.min.js +7075 -0
  64. package/components/counter/demo/readme.html +50 -0
  65. package/components/counter/demo/readme.md +146 -0
  66. package/components/counter/dist/auro-counter-button.d.ts +12 -0
  67. package/components/counter/dist/auro-counter-group.d.ts +235 -0
  68. package/components/counter/dist/auro-counter-wrapper.d.ts +22 -0
  69. package/components/counter/dist/auro-counter.d.ts +97 -0
  70. package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
  71. package/components/counter/dist/dropdownVersion.d.ts +2 -0
  72. package/components/counter/dist/iconVersion.d.ts +2 -0
  73. package/components/counter/dist/index.d.ts +3 -0
  74. package/components/counter/dist/index.js +7018 -0
  75. package/components/counter/dist/registered.js +7019 -0
  76. package/components/counter/dist/styles/color-css.d.ts +2 -0
  77. package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
  78. package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
  79. package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
  80. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
  81. package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
  82. package/components/counter/dist/styles/style-css.d.ts +2 -0
  83. package/components/counter/dist/styles/tokens-css.d.ts +2 -0
  84. package/components/datepicker/README.md +140 -0
  85. package/components/datepicker/demo/api.html +57 -0
  86. package/components/datepicker/demo/api.js +35 -0
  87. package/components/datepicker/demo/api.md +1479 -0
  88. package/components/datepicker/demo/api.min.js +24534 -0
  89. package/components/datepicker/demo/index.html +56 -0
  90. package/components/datepicker/demo/index.js +19 -0
  91. package/components/datepicker/demo/index.md +112 -0
  92. package/components/datepicker/demo/index.min.js +24255 -0
  93. package/components/datepicker/demo/readme.html +50 -0
  94. package/components/datepicker/demo/readme.md +140 -0
  95. package/components/datepicker/dist/auro-calendar-cell.d.ts +163 -0
  96. package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
  97. package/components/datepicker/dist/auro-calendar.d.ts +133 -0
  98. package/components/datepicker/dist/auro-datepicker.d.ts +466 -0
  99. package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
  100. package/components/datepicker/dist/buttonVersion.d.ts +2 -0
  101. package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
  102. package/components/datepicker/dist/index.d.ts +2 -0
  103. package/components/datepicker/dist/index.js +24185 -0
  104. package/components/datepicker/dist/inputVersion.d.ts +2 -0
  105. package/components/datepicker/dist/popoverVersion.d.ts +2 -0
  106. package/components/datepicker/dist/registered.js +24185 -0
  107. package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
  108. package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
  109. package/components/datepicker/dist/styles/color-css.d.ts +2 -0
  110. package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
  111. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
  112. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
  113. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
  114. package/components/datepicker/dist/styles/style-css.d.ts +2 -0
  115. package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
  116. package/components/datepicker/dist/utilities.d.ts +78 -0
  117. package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
  118. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
  119. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
  120. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
  121. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
  122. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
  123. package/components/dropdown/README.md +144 -0
  124. package/components/dropdown/demo/api.html +57 -0
  125. package/components/dropdown/demo/api.js +21 -0
  126. package/components/dropdown/demo/api.md +1434 -0
  127. package/components/dropdown/demo/api.min.js +3826 -0
  128. package/components/dropdown/demo/index.html +55 -0
  129. package/components/dropdown/demo/index.js +19 -0
  130. package/components/dropdown/demo/index.md +510 -0
  131. package/components/dropdown/demo/index.min.js +3789 -0
  132. package/components/dropdown/demo/readme.html +50 -0
  133. package/components/dropdown/demo/readme.md +144 -0
  134. package/components/dropdown/dist/auro-dropdown.d.ts +406 -0
  135. package/components/dropdown/dist/auro-dropdownBib.d.ts +46 -0
  136. package/components/dropdown/dist/dropdownVersion.d.ts +2 -0
  137. package/components/dropdown/dist/helptextVersion.d.ts +2 -0
  138. package/components/dropdown/dist/iconVersion.d.ts +2 -0
  139. package/components/dropdown/dist/index.d.ts +2 -0
  140. package/components/dropdown/dist/index.js +3734 -0
  141. package/components/dropdown/dist/registered.js +3734 -0
  142. package/components/dropdown/dist/styles/bibColors-css.d.ts +2 -0
  143. package/components/dropdown/dist/styles/bibStyles-css.d.ts +2 -0
  144. package/components/dropdown/dist/styles/color-css.d.ts +2 -0
  145. package/components/dropdown/dist/styles/style-css.d.ts +2 -0
  146. package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
  147. package/components/form/README.md +142 -0
  148. package/components/form/demo/api.html +49 -0
  149. package/components/form/demo/api.js +3 -0
  150. package/components/form/demo/api.md +51 -0
  151. package/components/form/demo/api.min.js +638 -0
  152. package/components/form/demo/autocomplete.html +15 -0
  153. package/components/form/demo/index.html +50 -0
  154. package/components/form/demo/index.js +4 -0
  155. package/components/form/demo/index.md +403 -0
  156. package/components/form/demo/index.min.js +639 -0
  157. package/components/form/demo/readme.html +50 -0
  158. package/components/form/demo/readme.md +142 -0
  159. package/components/form/demo/registerDemoDeps.js +23 -0
  160. package/components/form/demo/working.html +118 -0
  161. package/components/form/dist/auro-form.d.ts +223 -0
  162. package/components/form/dist/index.d.ts +2 -0
  163. package/components/form/dist/index.js +614 -0
  164. package/components/form/dist/registered.d.ts +1 -0
  165. package/components/form/dist/registered.js +614 -0
  166. package/components/form/dist/styles/style-css.d.ts +2 -0
  167. package/components/helptext/dist/auro-helptext.d.ts +61 -0
  168. package/components/helptext/dist/index.d.ts +2 -0
  169. package/components/helptext/dist/index.js +209 -0
  170. package/components/helptext/dist/registered.js +209 -0
  171. package/components/helptext/dist/styles/color-css.d.ts +2 -0
  172. package/components/helptext/dist/styles/style-css.d.ts +2 -0
  173. package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
  174. package/components/input/README.md +135 -0
  175. package/components/input/demo/api.html +42 -0
  176. package/components/input/demo/api.js +29 -0
  177. package/components/input/demo/api.md +1252 -0
  178. package/components/input/demo/api.min.js +7238 -0
  179. package/components/input/demo/index.html +43 -0
  180. package/components/input/demo/index.js +20 -0
  181. package/components/input/demo/index.md +202 -0
  182. package/components/input/demo/index.min.js +7157 -0
  183. package/components/input/demo/readme.html +50 -0
  184. package/components/input/demo/readme.md +135 -0
  185. package/components/input/dist/auro-input.d.ts +31 -0
  186. package/components/input/dist/base-input.d.ts +512 -0
  187. package/components/input/dist/buttonVersion.d.ts +2 -0
  188. package/components/input/dist/helptextVersion.d.ts +2 -0
  189. package/components/input/dist/i18n.d.ts +18 -0
  190. package/components/input/dist/iconVersion.d.ts +2 -0
  191. package/components/input/dist/index.d.ts +2 -0
  192. package/components/input/dist/index.js +7063 -0
  193. package/components/input/dist/registered.js +7063 -0
  194. package/components/input/dist/styles/borders-css.d.ts +2 -0
  195. package/components/input/dist/styles/color-css.d.ts +2 -0
  196. package/components/input/dist/styles/input-css.d.ts +2 -0
  197. package/components/input/dist/styles/label-css.d.ts +2 -0
  198. package/components/input/dist/styles/mixins-css.d.ts +2 -0
  199. package/components/input/dist/styles/notificationIcons-css.d.ts +2 -0
  200. package/components/input/dist/styles/style-css.d.ts +2 -0
  201. package/components/input/dist/styles/tokens-css.d.ts +2 -0
  202. package/components/input/dist/utilities.d.ts +25 -0
  203. package/components/menu/README.md +145 -0
  204. package/components/menu/demo/api.html +55 -0
  205. package/components/menu/demo/api.js +27 -0
  206. package/components/menu/demo/api.md +954 -0
  207. package/components/menu/demo/api.min.js +1538 -0
  208. package/components/menu/demo/index.html +52 -0
  209. package/components/menu/demo/index.js +28 -0
  210. package/components/menu/demo/index.md +61 -0
  211. package/components/menu/demo/index.min.js +1484 -0
  212. package/components/menu/demo/readme.html +50 -0
  213. package/components/menu/demo/readme.md +145 -0
  214. package/components/menu/dist/auro-menu-utils.d.ts +42 -0
  215. package/components/menu/dist/auro-menu.d.ts +205 -0
  216. package/components/menu/dist/auro-menuoption.d.ts +63 -0
  217. package/components/menu/dist/dropdownVersion.d.ts +2 -0
  218. package/components/menu/dist/iconVersion.d.ts +2 -0
  219. package/components/menu/dist/index.d.ts +4 -0
  220. package/components/menu/dist/index.js +1426 -0
  221. package/components/menu/dist/registered.js +1427 -0
  222. package/components/menu/dist/styles/color-menu-css.d.ts +2 -0
  223. package/components/menu/dist/styles/color-menuoption-css.d.ts +2 -0
  224. package/components/menu/dist/styles/style-menu-css.d.ts +2 -0
  225. package/components/menu/dist/styles/style-menuoption-css.d.ts +2 -0
  226. package/components/menu/dist/styles/tokens-css.d.ts +2 -0
  227. package/components/radio/README.md +137 -0
  228. package/components/radio/demo/api.html +53 -0
  229. package/components/radio/demo/api.js +19 -0
  230. package/components/radio/demo/api.md +562 -0
  231. package/components/radio/demo/api.min.js +1944 -0
  232. package/components/radio/demo/index.html +50 -0
  233. package/components/radio/demo/index.js +8 -0
  234. package/components/radio/demo/index.md +150 -0
  235. package/components/radio/demo/index.min.js +1901 -0
  236. package/components/radio/demo/readme.html +50 -0
  237. package/components/radio/demo/readme.md +137 -0
  238. package/components/radio/dist/auro-radio-group.d.ts +194 -0
  239. package/components/radio/dist/auro-radio.d.ts +144 -0
  240. package/components/radio/dist/helptextVersion.d.ts +2 -0
  241. package/components/radio/dist/index.d.ts +3 -0
  242. package/components/radio/dist/index.js +1850 -0
  243. package/components/radio/dist/registered.js +1851 -0
  244. package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
  245. package/components/radio/dist/styles/color-css.d.ts +2 -0
  246. package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
  247. package/components/radio/dist/styles/style-css.d.ts +2 -0
  248. package/components/radio/dist/styles/tokens-css.d.ts +2 -0
  249. package/components/select/README.md +144 -0
  250. package/components/select/demo/api.html +71 -0
  251. package/components/select/demo/api.js +35 -0
  252. package/components/select/demo/api.md +1313 -0
  253. package/components/select/demo/api.min.js +7763 -0
  254. package/components/select/demo/index.html +66 -0
  255. package/components/select/demo/index.js +9 -0
  256. package/components/select/demo/index.md +815 -0
  257. package/components/select/demo/index.min.js +7651 -0
  258. package/components/select/demo/readme.html +50 -0
  259. package/components/select/demo/readme.md +144 -0
  260. package/components/select/dist/auro-select.d.ts +359 -0
  261. package/components/select/dist/bibtemplateVersion.d.ts +2 -0
  262. package/components/select/dist/dropdownVersion.d.ts +2 -0
  263. package/components/select/dist/index.d.ts +2 -0
  264. package/components/select/dist/index.js +6300 -0
  265. package/components/select/dist/registered.js +6300 -0
  266. package/components/select/dist/styles/style-css.d.ts +2 -0
  267. package/package.json +217 -0
  268. package/packages/build-tools/src/postinstall.mjs +12 -0
@@ -0,0 +1,562 @@
1
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/api.md) -->
2
+ <!-- The below content is automatically added from ./../docs/api.md -->
3
+
4
+ # auro-radio-group
5
+
6
+ ## Properties
7
+
8
+ | Property | Attribute | Type | Default | Description |
9
+ |---------------------------------|---------------------------------|-----------|-------------|--------------------------------------------------|
10
+ | [disabled](#disabled) | `disabled` | `boolean` | false | |
11
+ | [error](#error) | `error` | `String` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
12
+ | [horizontal](#horizontal) | `horizontal` | `boolean` | false | |
13
+ | [noValidate](#noValidate) | `noValidate` | `Boolean` | | If set, disables auto-validation on blur. |
14
+ | [onDark](#onDark) | `onDark` | `Boolean` | false | Applies dark mode styles to the component. |
15
+ | [optionSelected](#optionSelected) | `optionSelected` | `Object` | "undefined" | Specifies the current selected radio button. |
16
+ | [required](#required) | `required` | `Boolean` | false | Populates the `required` attribute on the element. Used for client-side validation. |
17
+ | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `String` | | Sets a custom help text message to display for all validityStates. |
18
+ | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `String` | | Custom help text message to display when validity = `customError`. |
19
+ | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `String` | | Custom help text message to display when validity = `valueMissing`. |
20
+ | [validity](#validity) | `validity` | `String` | "undefined" | Specifies the `validityState` this element is in. |
21
+ | [value](#value) | `value` | `string` | "undefined" | |
22
+
23
+ ## Methods
24
+
25
+ | Method | Type | Description |
26
+ |------------|----------------------------------------|--------------------------------------------------|
27
+ | [reset](#reset) | `(): void` | Resets component to initial state. |
28
+ | [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
29
+
30
+ ## Events
31
+
32
+ | Event | Type | Description |
33
+ |-----------------------------|--------------------|--------------------------------------------------|
34
+ | `auroFormElement-validated` | | Notifies that the element has been validated. |
35
+ | [input](#input) | `CustomEvent<any>` | Notifies every time the value prop of the element is changed. |
36
+
37
+ ## Slots
38
+
39
+ | Name | Description |
40
+ |-----------------|-------------------------------------------------|
41
+ | [helpText](#helpText) | Allows for the helper text to be overridden. |
42
+ | [legend](#legend) | Allows for the legend to be overridden. |
43
+ | [optionalLabel](#optionalLabel) | Allows for the optional label to be overridden. |
44
+
45
+ ## CSS Shadow Parts
46
+
47
+ | Part | Description |
48
+ |---------------|--------------------------------------------------|
49
+ | `radio-group` | Apply css to the fieldset element in the shadow DOM |
50
+
51
+ # auro-radio
52
+
53
+ ## Properties
54
+
55
+ | Property | Attribute | Type | Default | Description |
56
+ |------------|------------|-----------|---------|--------------------------------------------------|
57
+ | [checked](#checked) | `checked` | `Boolean` | false | If set to true, the radio button will be filled. |
58
+ | [disabled](#disabled) | `disabled` | `Boolean` | false | If set to true, the radio button will be non-clickable. |
59
+ | [error](#error) | `error` | `Boolean` | false | If set to true, sets an error state on the radio button. |
60
+ | [id](#id) | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
61
+ | [label](#label) | `label` | `string` | | |
62
+ | [name](#name) | `name` | `string` | | |
63
+ | [onDark](#onDark) | `onDark` | `Boolean` | false | If set to true, the component will render with a dark theme. |
64
+ | [required](#required) | `required` | `Boolean` | false | Defines element as required. |
65
+ | [tabIndex](#tabIndex) | `tabIndex` | `number` | -1 | |
66
+ | [value](#value) | `value` | `string` | | |
67
+
68
+ ## Methods
69
+
70
+ | Method | Type | Description |
71
+ |---------|------------|------------------------------------|
72
+ | [reset](#reset) | `(): void` | Resets component to initial state. |
73
+
74
+ ## Events
75
+
76
+ | Event | Type | Description |
77
+ |----------------------|--------------------|--------------------------------------------------|
78
+ | `auroRadio-blur` | `CustomEvent<any>` | Notifies that the component has lost focus. |
79
+ | `auroRadio-selected` | `CustomEvent<any>` | Notifies that the component has been marked as checked/selected. |
80
+ | [focusSelected](#focusSelected) | `CustomEvent<any>` | Notifies that the component has gained focus. |
81
+ | [resetRadio](#resetRadio) | `CustomEvent<any>` | Notifies that the component has reset the checked/selected state. |
82
+ | [toggleSelected](#toggleSelected) | `CustomEvent<any>` | Notifies that the component has toggled the checked/selected state. |
83
+ <!-- AURO-GENERATED-CONTENT:END -->
84
+
85
+ ## API Examples
86
+
87
+ ### Default
88
+
89
+ The following example illustrates the default use of the `<auro-radio>` custom element.
90
+
91
+ <div class="exampleWrapper">
92
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
93
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
94
+ <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
95
+ <!-- AURO-GENERATED-CONTENT:END -->
96
+ </div>
97
+ <div class="exampleWrapper--ondark" aria-hidden>
98
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
99
+ <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
100
+ <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" onDark></auro-radio>
101
+ <!-- AURO-GENERATED-CONTENT:END -->
102
+ </div>
103
+ <auro-accordion alignRight>
104
+ <span slot="trigger">See code</span>
105
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
106
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
107
+
108
+ ```html
109
+ <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
110
+ ```
111
+ <!-- AURO-GENERATED-CONTENT:END -->
112
+ <div class="exampleWrapper--ondark" aria-hidden>
113
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
114
+ <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
115
+ <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" onDark></auro-radio>
116
+ <!-- AURO-GENERATED-CONTENT:END -->
117
+ </div>
118
+ </auro-accordion>
119
+
120
+ ### Default Group
121
+
122
+ This is a default configuration using the `<auro-radio-group>` and `<auro-radio>` elements. Notice the use of the `slot` attribute to set the group title of the `<auro-radio-group>`.
123
+
124
+ <div class="exampleWrapper">
125
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicGroup.html) -->
126
+ <!-- The below content is automatically added from ./../apiExamples/basicGroup.html -->
127
+ <auro-radio-group>
128
+ <span slot="legend">Form label goes here</span>
129
+ <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
130
+ <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
131
+ <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
132
+ </auro-radio-group>
133
+ <!-- AURO-GENERATED-CONTENT:END -->
134
+ </div>
135
+ <div class="exampleWrapper--ondark" aria-hidden>
136
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkGroup.html) -->
137
+ <!-- The below content is automatically added from ./../apiExamples/onDarkGroup.html -->
138
+ <auro-radio-group onDark>
139
+ <span slot="legend">Form label goes here</span>
140
+ <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
141
+ <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
142
+ <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
143
+ </auro-radio-group>
144
+ <!-- AURO-GENERATED-CONTENT:END -->
145
+ </div>
146
+ <auro-accordion alignRight>
147
+ <span slot="trigger">See code</span>
148
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicGroup.html) -->
149
+ <!-- The below code snippet is automatically added from ./../apiExamples/basicGroup.html -->
150
+ ```html
151
+ <auro-radio-group>
152
+ <span slot="legend">Form label goes here</span>
153
+ <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
154
+ <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
155
+ <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
156
+ </auro-radio-group>
157
+ ```
158
+ <!-- AURO-GENERATED-CONTENT:END -->
159
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkGroup.html) -->
160
+ <!-- The below content is automatically added from ./../apiExamples/onDarkGroup.html -->
161
+ <auro-radio-group onDark>
162
+ <span slot="legend">Form label goes here</span>
163
+ <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
164
+ <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
165
+ <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
166
+ </auro-radio-group>
167
+ <!-- AURO-GENERATED-CONTENT:END -->
168
+ </auro-accordion>
169
+
170
+ ### Checked
171
+
172
+ Use the `checked` attribute to pre-select a `<auro-radio>` element.
173
+
174
+ <div class="exampleWrapper">
175
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/checked.html) -->
176
+ <!-- The below content is automatically added from ./../apiExamples/checked.html -->
177
+ <auro-radio-group>
178
+ <span slot="legend">Form label goes here</span>
179
+ <auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
180
+ <auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
181
+ <auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
182
+ </auro-radio-group>
183
+ <!-- AURO-GENERATED-CONTENT:END -->
184
+ </div>
185
+ <div class="exampleWrapper--ondark" aria-hidden>
186
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkChecked.html) -->
187
+ <!-- The below content is automatically added from ./../apiExamples/onDarkChecked.html -->
188
+ <auro-radio-group onDark>
189
+ <span slot="legend">Form label goes here</span>
190
+ <auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
191
+ <auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
192
+ <auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
193
+ </auro-radio-group>
194
+ <!-- AURO-GENERATED-CONTENT:END -->
195
+ </div>
196
+ <auro-accordion alignRight>
197
+ <span slot="trigger">See code</span>
198
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/checked.html) -->
199
+ <!-- The below code snippet is automatically added from ./../apiExamples/checked.html -->
200
+ ```html
201
+ <auro-radio-group>
202
+ <span slot="legend">Form label goes here</span>
203
+ <auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
204
+ <auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
205
+ <auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
206
+ </auro-radio-group>
207
+ ```
208
+ <!-- AURO-GENERATED-CONTENT:END -->
209
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkChecked.html) -->
210
+ <!-- The below content is automatically added from ./../apiExamples/onDarkChecked.html -->
211
+ <auro-radio-group onDark>
212
+ <span slot="legend">Form label goes here</span>
213
+ <auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
214
+ <auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
215
+ <auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
216
+ </auro-radio-group>
217
+ <!-- AURO-GENERATED-CONTENT:END -->
218
+ </auro-accordion>
219
+
220
+ ### Disabled
221
+
222
+ Use the `disabled` attribute to disable singular `<auro-radio>` elements or the entire `<auro-radio-group>`.
223
+
224
+ <div class="exampleWrapper">
225
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
226
+ <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
227
+ <auro-radio-group>
228
+ <span slot="legend">Form label goes here</span>
229
+ <auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
230
+ <auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
231
+ <auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
232
+ </auro-radio-group>
233
+ <auro-radio-group disabled>
234
+ <span slot="legend">Form label goes here</span>
235
+ <auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
236
+ <auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
237
+ <auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
238
+ </auro-radio-group>
239
+ <!-- AURO-GENERATED-CONTENT:END -->
240
+ </div>
241
+ <div class="exampleWrapper--ondark" aria-hidden>
242
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
243
+ <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
244
+ <auro-radio-group onDark>
245
+ <span slot="legend">Form label goes here</span>
246
+ <auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
247
+ <auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
248
+ <auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
249
+ </auro-radio-group>
250
+ <auro-radio-group onDark disabled>
251
+ <span slot="legend">Form label goes here</span>
252
+ <auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
253
+ <auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
254
+ <auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
255
+ </auro-radio-group>
256
+ <!-- AURO-GENERATED-CONTENT:END -->
257
+ </div>
258
+ <auro-accordion alignRight>
259
+ <span slot="trigger">See code</span>
260
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
261
+ <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
262
+ ```html
263
+ <auro-radio-group>
264
+ <span slot="legend">Form label goes here</span>
265
+ <auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
266
+ <auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
267
+ <auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
268
+ </auro-radio-group>
269
+ <auro-radio-group disabled>
270
+ <span slot="legend">Form label goes here</span>
271
+ <auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
272
+ <auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
273
+ <auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
274
+ </auro-radio-group>
275
+ ```
276
+ <!-- AURO-GENERATED-CONTENT:END -->
277
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
278
+ <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
279
+ <auro-radio-group onDark>
280
+ <span slot="legend">Form label goes here</span>
281
+ <auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
282
+ <auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
283
+ <auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
284
+ </auro-radio-group>
285
+ <auro-radio-group onDark disabled>
286
+ <span slot="legend">Form label goes here</span>
287
+ <auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
288
+ <auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
289
+ <auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
290
+ </auro-radio-group>
291
+ <!-- AURO-GENERATED-CONTENT:END -->
292
+ </auro-accordion>
293
+
294
+ ### Error
295
+
296
+ Use the `error` attribute to apply a persistent custom error that supersedes the HTML5 validation logic.
297
+
298
+ A custom error message can be set using the `error` attribute, or it can be used in conjuction with the `setCustomValidityCustomError` attribute.
299
+
300
+ <div class="exampleWrapper">
301
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
302
+ <!-- The below content is automatically added from ./../apiExamples/error.html -->
303
+ <auro-radio-group error="There is an error with this form entry">
304
+ <span slot="legend">Form label goes here</span>
305
+ <auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
306
+ <auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
307
+ <auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
308
+ </auro-radio-group>
309
+ <!-- AURO-GENERATED-CONTENT:END -->
310
+ </div>
311
+ <div class="exampleWrapper--ondark" aria-hidden>
312
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
313
+ <!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
314
+ <auro-radio-group onDark error="There is an error with this form entry">
315
+ <span slot="legend">Form label goes here</span>
316
+ <auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
317
+ <auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
318
+ <auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
319
+ </auro-radio-group>
320
+ <!-- AURO-GENERATED-CONTENT:END -->
321
+ </div>
322
+ <auro-accordion alignRight>
323
+ <span slot="trigger">See code</span>
324
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
325
+ <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
326
+ ```html
327
+ <auro-radio-group error="There is an error with this form entry">
328
+ <span slot="legend">Form label goes here</span>
329
+ <auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
330
+ <auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
331
+ <auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
332
+ </auro-radio-group>
333
+ ```
334
+ <!-- AURO-GENERATED-CONTENT:END -->
335
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
336
+ <!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
337
+ <auro-radio-group onDark error="There is an error with this form entry">
338
+ <span slot="legend">Form label goes here</span>
339
+ <auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
340
+ <auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
341
+ <auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
342
+ </auro-radio-group>
343
+ <!-- AURO-GENERATED-CONTENT:END -->
344
+ </auro-accordion>
345
+
346
+ ### Horizontal Group
347
+
348
+ Using the `horizontal` attribute will render the `auro-radio` elements in a horizontal line.
349
+
350
+ **Note**: Using the horizontal attribute has a limit of 3 options. Beyond three, options will be listed in vertically.
351
+
352
+ <div class="exampleWrapper">
353
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/horizontal.html) -->
354
+ <!-- The below content is automatically added from ./../apiExamples/horizontal.html -->
355
+ <auro-radio-group horizontal>
356
+ <span slot="legend">Form label goes here</span>
357
+ <auro-radio id="horizontalRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
358
+ <auro-radio id="horizontalRadio2" label="No" name="radioDemo" value="no"></auro-radio>
359
+ <auro-radio id="horizontalRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
360
+ </auro-radio-group>
361
+ <!-- AURO-GENERATED-CONTENT:END -->
362
+ </div>
363
+ <auro-accordion alignRight>
364
+ <span slot="trigger">See code</span>
365
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/horizontal.html) -->
366
+ <!-- The below code snippet is automatically added from ./../apiExamples/horizontal.html -->
367
+
368
+ ```html
369
+ <auro-radio-group horizontal>
370
+ <span slot="legend">Form label goes here</span>
371
+ <auro-radio id="horizontalRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
372
+ <auro-radio id="horizontalRadio2" label="No" name="radioDemo" value="no"></auro-radio>
373
+ <auro-radio id="horizontalRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
374
+ </auro-radio-group>
375
+ ```
376
+ <!-- AURO-GENERATED-CONTENT:END -->
377
+ </auro-accordion>
378
+
379
+ ### Required
380
+
381
+ When present, the `required` attribute specifies that an `<auro-radio>` within the `<auro-radio-group>` must be checked. There is no error message associated with the `required` attribute by default. Use `setCustomValidityValueMissing` to set a custom error message.
382
+
383
+ <div class="exampleWrapper">
384
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
385
+ <!-- The below content is automatically added from ./../apiExamples/required.html -->
386
+ <auro-radio-group required setCustomValidityValueMissing="value missing">
387
+ <span slot="legend">Form label goes here</span>
388
+ <auro-radio id="requiredRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
389
+ <auro-radio id="requiredRadio2" label="No" name="radioDemo" value="no"></auro-radio>
390
+ <auro-radio id="requiredRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
391
+ </auro-radio-group>
392
+ <!-- AURO-GENERATED-CONTENT:END -->
393
+ </div>
394
+ <auro-accordion alignRight>
395
+ <span slot="trigger">See code</span>
396
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
397
+ <!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
398
+
399
+ ```html
400
+ <auro-radio-group required setCustomValidityValueMissing="value missing">
401
+ <span slot="legend">Form label goes here</span>
402
+ <auro-radio id="requiredRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
403
+ <auro-radio id="requiredRadio2" label="No" name="radioDemo" value="no"></auro-radio>
404
+ <auro-radio id="requiredRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
405
+ </auro-radio-group>
406
+ ```
407
+ <!-- AURO-GENERATED-CONTENT:END -->
408
+ </auro-accordion>
409
+
410
+ ### Custom optional label
411
+
412
+ The `<auro-radio-group>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
413
+
414
+ <div class="exampleWrapper">
415
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
416
+ <!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
417
+ <auro-radio-group>
418
+ <span slot="legend">Form label goes here</span>
419
+ <span slot="optionalLabel">(add custom label here)</span>
420
+ <auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
421
+ <auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
422
+ <auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
423
+ </auro-radio-group>
424
+ <!-- AURO-GENERATED-CONTENT:END -->
425
+ </div>
426
+ <auro-accordion alignRight>
427
+ <span slot="trigger">See code</span>
428
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
429
+ <!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
430
+
431
+ ```html
432
+ <auro-radio-group>
433
+ <span slot="legend">Form label goes here</span>
434
+ <span slot="optionalLabel">(add custom label here)</span>
435
+ <auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
436
+ <auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
437
+ <auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
438
+ </auro-radio-group>
439
+ ```
440
+ <!-- AURO-GENERATED-CONTENT:END -->
441
+ </auro-accordion>
442
+
443
+ ### Reset State
444
+
445
+ Use the `reset()` method to reset the `<auro-radio-group>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
446
+
447
+ <div class="exampleWrapper">
448
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/resetState.html) -->
449
+ <!-- The below content is automatically added from ./../apiExamples/resetState.html -->
450
+ <auro-button id="resetStateBtn">Reset</auro-button>
451
+ <br/><br/>
452
+ <auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
453
+ <span slot="legend">Form label goes here</span>
454
+ <auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
455
+ <auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
456
+ <auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
457
+ </auro-radio-group>
458
+ <!-- AURO-GENERATED-CONTENT:END -->
459
+ </div>
460
+ <auro-accordion alignRight>
461
+ <span slot="trigger">See code</span>
462
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.html) -->
463
+ <!-- The below code snippet is automatically added from ./../apiExamples/resetState.html -->
464
+
465
+ ```html
466
+ <auro-button id="resetStateBtn">Reset</auro-button>
467
+ <br/><br/>
468
+ <auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
469
+ <span slot="legend">Form label goes here</span>
470
+ <auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
471
+ <auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
472
+ <auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
473
+ </auro-radio-group>
474
+ ```
475
+ <!-- AURO-GENERATED-CONTENT:END -->
476
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.js) -->
477
+ <!-- The below code snippet is automatically added from ./../apiExamples/resetState.js -->
478
+
479
+ ```js
480
+ export function resetStateExample() {
481
+ const elem = document.querySelector('#resetStateExample');
482
+
483
+ document.querySelector('#resetStateBtn').addEventListener('click', () => {
484
+ elem.reset();
485
+ });
486
+ }
487
+ ```
488
+ <!-- AURO-GENERATED-CONTENT:END -->
489
+ </auro-accordion>
490
+
491
+ ### Dynamic Example
492
+
493
+ This example demonstrates a data drive approach to rendering `<auro-radio>` buttons.
494
+
495
+ **Note**: When dynamically creating `<auro-radio>` elements, make sure to add an `id` attribute, as it is a required part of the HTML5 spec for all form elements.
496
+
497
+ <div class="exampleWrapper">
498
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamic.html) -->
499
+ <!-- The below content is automatically added from ./../apiExamples/dynamic.html -->
500
+ <auro-radio-group required id="dynamicExample">
501
+ <span slot="legend">Form label goes here</span>
502
+ </auro-radio-group>
503
+ <!-- AURO-GENERATED-CONTENT:END -->
504
+ </div>
505
+ <auro-accordion alignRight>
506
+ <span slot="trigger">See code</span>
507
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic.html) -->
508
+ <!-- The below code snippet is automatically added from ./../apiExamples/dynamic.html -->
509
+
510
+ ```html
511
+ <auro-radio-group required id="dynamicExample">
512
+ <span slot="legend">Form label goes here</span>
513
+ </auro-radio-group>
514
+ ```
515
+ <!-- AURO-GENERATED-CONTENT:END -->
516
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic.js) -->
517
+ <!-- The below code snippet is automatically added from ./../apiExamples/dynamic.js -->
518
+
519
+ ```js
520
+ export function dynamicExample() {
521
+ const values = ['Yes', 'No', 'Maybe'];
522
+ const radioGroup = document.getElementById('dynamicExample');
523
+
524
+ for (let i = 0; i < values.length; i++) {
525
+ const radio = document.createElement('auro-radio');
526
+
527
+ radio.id = `dynamicRadio${i}`;
528
+ radio.label = values[i];
529
+ radio.name = 'radioDemo';
530
+ radio.value = values[i];
531
+ radio.textContent = values[i];
532
+
533
+ radioGroup.appendChild(radio);
534
+ }
535
+ }
536
+ ```
537
+ <!-- AURO-GENERATED-CONTENT:END -->
538
+ </auro-accordion>
539
+
540
+ ## Theme Support
541
+
542
+ The component may be restyled using the following code sample and changing the values of the following token(s).
543
+
544
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
545
+ <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
546
+
547
+ ```scss
548
+ @import "@aurodesignsystem/design-tokens/dist/alaska/SCSSVariables--alaska";
549
+
550
+ :host {
551
+ // auro-radio-group colors
552
+ --ds-auro-radio-group-label-color: inherit;
553
+
554
+ // auro-radio colors
555
+ --ds-auro-radio-btn-border-color: var(--ds-basic-color-border-bold, #{$ds-basic-color-border-bold});
556
+ --ds-auro-radio-btn-fill-color: transparent;
557
+ --ds-auro-radio-btn-inset-color: transparent;
558
+ --ds-auro-radio-label-color: inherit;
559
+ --ds-auro-radio-tap-color: transparent;
560
+ }
561
+ ```
562
+ <!-- AURO-GENERATED-CONTENT:END -->