@aurodesignsystem-dev/auro-formkit 0.0.0-pr1001.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 (297) 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 +50 -0
  6. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  7. package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
  8. package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
  9. package/components/bibtemplate/dist/index.d.ts +2 -0
  10. package/components/bibtemplate/dist/index.js +1940 -0
  11. package/components/bibtemplate/dist/registered.js +1940 -0
  12. package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
  13. package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
  14. package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
  15. package/components/checkbox/README.md +142 -0
  16. package/components/checkbox/demo/api.html +61 -0
  17. package/components/checkbox/demo/api.js +17 -0
  18. package/components/checkbox/demo/api.md +436 -0
  19. package/components/checkbox/demo/api.min.js +1870 -0
  20. package/components/checkbox/demo/index.html +57 -0
  21. package/components/checkbox/demo/index.js +8 -0
  22. package/components/checkbox/demo/index.md +327 -0
  23. package/components/checkbox/demo/index.min.js +1845 -0
  24. package/components/checkbox/demo/readme.html +57 -0
  25. package/components/checkbox/demo/readme.md +142 -0
  26. package/components/checkbox/dist/auro-checkbox-group.d.ts +166 -0
  27. package/components/checkbox/dist/auro-checkbox.d.ts +136 -0
  28. package/components/checkbox/dist/helptextVersion.d.ts +2 -0
  29. package/components/checkbox/dist/index.d.ts +3 -0
  30. package/components/checkbox/dist/index.js +1794 -0
  31. package/components/checkbox/dist/registered.js +1795 -0
  32. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
  33. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
  34. package/components/checkbox/dist/styles/color-css.d.ts +2 -0
  35. package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
  36. package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
  37. package/components/combobox/README.md +154 -0
  38. package/components/combobox/demo/api.html +63 -0
  39. package/components/combobox/demo/api.js +36 -0
  40. package/components/combobox/demo/api.md +1326 -0
  41. package/components/combobox/demo/api.min.js +18691 -0
  42. package/components/combobox/demo/index.html +63 -0
  43. package/components/combobox/demo/index.js +26 -0
  44. package/components/combobox/demo/index.md +725 -0
  45. package/components/combobox/demo/index.min.js +18545 -0
  46. package/components/combobox/demo/readme.html +57 -0
  47. package/components/combobox/demo/readme.md +154 -0
  48. package/components/combobox/dist/auro-combobox.d.ts +434 -0
  49. package/components/combobox/dist/bibtemplateVersion.d.ts +2 -0
  50. package/components/combobox/dist/dropdownVersion.d.ts +2 -0
  51. package/components/combobox/dist/index.d.ts +2 -0
  52. package/components/combobox/dist/index.js +16999 -0
  53. package/components/combobox/dist/inputVersion.d.ts +2 -0
  54. package/components/combobox/dist/registered.js +17001 -0
  55. package/components/combobox/dist/styles/emphasized/style-css.d.ts +2 -0
  56. package/components/combobox/dist/styles/snowflake/style-css.d.ts +2 -0
  57. package/components/combobox/dist/styles/style-css.d.ts +2 -0
  58. package/components/counter/README.md +146 -0
  59. package/components/counter/demo/api.html +61 -0
  60. package/components/counter/demo/api.js +20 -0
  61. package/components/counter/demo/api.md +730 -0
  62. package/components/counter/demo/api.min.js +10406 -0
  63. package/components/counter/demo/index.html +61 -0
  64. package/components/counter/demo/index.js +21 -0
  65. package/components/counter/demo/index.md +401 -0
  66. package/components/counter/demo/index.min.js +10370 -0
  67. package/components/counter/demo/readme.html +57 -0
  68. package/components/counter/demo/readme.md +146 -0
  69. package/components/counter/dist/auro-counter-button.d.ts +14 -0
  70. package/components/counter/dist/auro-counter-group.d.ts +386 -0
  71. package/components/counter/dist/auro-counter-wrapper.d.ts +22 -0
  72. package/components/counter/dist/auro-counter.d.ts +113 -0
  73. package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
  74. package/components/counter/dist/dropdownVersion.d.ts +2 -0
  75. package/components/counter/dist/helptextVersion.d.ts +2 -0
  76. package/components/counter/dist/iconVersion.d.ts +2 -0
  77. package/components/counter/dist/index.d.ts +3 -0
  78. package/components/counter/dist/index.js +10313 -0
  79. package/components/counter/dist/registered.js +10314 -0
  80. package/components/counter/dist/styles/color-css.d.ts +2 -0
  81. package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
  82. package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
  83. package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
  84. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
  85. package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
  86. package/components/counter/dist/styles/shapeSize-css.d.ts +2 -0
  87. package/components/counter/dist/styles/style-css.d.ts +2 -0
  88. package/components/counter/dist/styles/tokens-css.d.ts +2 -0
  89. package/components/datepicker/README.md +141 -0
  90. package/components/datepicker/demo/api.html +63 -0
  91. package/components/datepicker/demo/api.js +35 -0
  92. package/components/datepicker/demo/api.md +1529 -0
  93. package/components/datepicker/demo/api.min.js +29755 -0
  94. package/components/datepicker/demo/index.html +62 -0
  95. package/components/datepicker/demo/index.js +19 -0
  96. package/components/datepicker/demo/index.md +204 -0
  97. package/components/datepicker/demo/index.min.js +29476 -0
  98. package/components/datepicker/demo/readme.html +57 -0
  99. package/components/datepicker/demo/readme.md +141 -0
  100. package/components/datepicker/dist/auro-calendar-cell.d.ts +163 -0
  101. package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
  102. package/components/datepicker/dist/auro-calendar.d.ts +133 -0
  103. package/components/datepicker/dist/auro-datepicker.d.ts +625 -0
  104. package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
  105. package/components/datepicker/dist/buttonVersion.d.ts +2 -0
  106. package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
  107. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  108. package/components/datepicker/dist/index.d.ts +2 -0
  109. package/components/datepicker/dist/index.js +29406 -0
  110. package/components/datepicker/dist/inputVersion.d.ts +2 -0
  111. package/components/datepicker/dist/popoverVersion.d.ts +2 -0
  112. package/components/datepicker/dist/registered.js +29406 -0
  113. package/components/datepicker/dist/styles/classic/color-css.d.ts +2 -0
  114. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  115. package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
  116. package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
  117. package/components/datepicker/dist/styles/color-css.d.ts +2 -0
  118. package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
  119. package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
  120. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +2 -0
  121. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
  122. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
  123. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
  124. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
  125. package/components/datepicker/dist/styles/style-css.d.ts +2 -0
  126. package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
  127. package/components/datepicker/dist/utilities.d.ts +78 -0
  128. package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
  129. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
  130. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
  131. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
  132. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
  133. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
  134. package/components/dropdown/README.md +144 -0
  135. package/components/dropdown/demo/api.html +63 -0
  136. package/components/dropdown/demo/api.js +21 -0
  137. package/components/dropdown/demo/api.md +1266 -0
  138. package/components/dropdown/demo/api.min.js +4442 -0
  139. package/components/dropdown/demo/index.html +61 -0
  140. package/components/dropdown/demo/index.js +19 -0
  141. package/components/dropdown/demo/index.md +337 -0
  142. package/components/dropdown/demo/index.min.js +4405 -0
  143. package/components/dropdown/demo/readme.html +57 -0
  144. package/components/dropdown/demo/readme.md +144 -0
  145. package/components/dropdown/dist/auro-dropdown.d.ts +425 -0
  146. package/components/dropdown/dist/auro-dropdownBib.d.ts +68 -0
  147. package/components/dropdown/dist/dropdownVersion.d.ts +2 -0
  148. package/components/dropdown/dist/helptextVersion.d.ts +2 -0
  149. package/components/dropdown/dist/iconVersion.d.ts +2 -0
  150. package/components/dropdown/dist/index.d.ts +2 -0
  151. package/components/dropdown/dist/index.js +4350 -0
  152. package/components/dropdown/dist/registered.js +4350 -0
  153. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +2 -0
  154. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +2 -0
  155. package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
  156. package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
  157. package/components/dropdown/dist/styles/color-css.d.ts +2 -0
  158. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  159. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  160. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  161. package/components/dropdown/dist/styles/style-css.d.ts +2 -0
  162. package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
  163. package/components/form/README.md +142 -0
  164. package/components/form/demo/api.html +56 -0
  165. package/components/form/demo/api.js +3 -0
  166. package/components/form/demo/api.md +51 -0
  167. package/components/form/demo/api.min.js +638 -0
  168. package/components/form/demo/autocomplete.html +31 -0
  169. package/components/form/demo/index.html +57 -0
  170. package/components/form/demo/index.js +4 -0
  171. package/components/form/demo/index.md +403 -0
  172. package/components/form/demo/index.min.js +639 -0
  173. package/components/form/demo/readme.html +57 -0
  174. package/components/form/demo/readme.md +142 -0
  175. package/components/form/demo/registerDemoDeps.js +23 -0
  176. package/components/form/demo/working.html +124 -0
  177. package/components/form/dist/auro-form.d.ts +223 -0
  178. package/components/form/dist/index.d.ts +2 -0
  179. package/components/form/dist/index.js +614 -0
  180. package/components/form/dist/registered.d.ts +1 -0
  181. package/components/form/dist/registered.js +614 -0
  182. package/components/form/dist/styles/style-css.d.ts +2 -0
  183. package/components/helptext/dist/auro-helptext.d.ts +59 -0
  184. package/components/helptext/dist/index.d.ts +2 -0
  185. package/components/helptext/dist/index.js +207 -0
  186. package/components/helptext/dist/registered.js +207 -0
  187. package/components/helptext/dist/styles/color-css.d.ts +2 -0
  188. package/components/helptext/dist/styles/style-css.d.ts +2 -0
  189. package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
  190. package/components/input/README.md +139 -0
  191. package/components/input/demo/api.html +48 -0
  192. package/components/input/demo/api.js +29 -0
  193. package/components/input/demo/api.md +1366 -0
  194. package/components/input/demo/api.min.js +8542 -0
  195. package/components/input/demo/index.html +49 -0
  196. package/components/input/demo/index.js +20 -0
  197. package/components/input/demo/index.md +270 -0
  198. package/components/input/demo/index.min.js +8461 -0
  199. package/components/input/demo/readme.html +57 -0
  200. package/components/input/demo/readme.md +139 -0
  201. package/components/input/dist/auro-input.d.ts +167 -0
  202. package/components/input/dist/base-input.d.ts +566 -0
  203. package/components/input/dist/buttonVersion.d.ts +2 -0
  204. package/components/input/dist/helptextVersion.d.ts +2 -0
  205. package/components/input/dist/i18n.d.ts +18 -0
  206. package/components/input/dist/iconVersion.d.ts +2 -0
  207. package/components/input/dist/index.d.ts +2 -0
  208. package/components/input/dist/index.js +8367 -0
  209. package/components/input/dist/registered.js +8367 -0
  210. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  211. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  212. package/components/input/dist/styles/color-css.d.ts +2 -0
  213. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  214. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  215. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  216. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  217. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  218. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  219. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  220. package/components/input/dist/styles/mixins-css.d.ts +2 -0
  221. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  222. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  223. package/components/input/dist/styles/style-css.d.ts +2 -0
  224. package/components/input/dist/styles/tokens-css.d.ts +2 -0
  225. package/components/input/dist/utilities.d.ts +25 -0
  226. package/components/layoutElement/dist/auroElement.d.ts +34 -0
  227. package/components/layoutElement/dist/index.d.ts +2 -0
  228. package/components/layoutElement/dist/index.js +98 -0
  229. package/components/layoutElement/dist/registered.js +98 -0
  230. package/components/menu/README.md +145 -0
  231. package/components/menu/demo/api.html +62 -0
  232. package/components/menu/demo/api.js +27 -0
  233. package/components/menu/demo/api.md +1011 -0
  234. package/components/menu/demo/api.min.js +1762 -0
  235. package/components/menu/demo/index.html +58 -0
  236. package/components/menu/demo/index.js +28 -0
  237. package/components/menu/demo/index.md +61 -0
  238. package/components/menu/demo/index.min.js +1708 -0
  239. package/components/menu/demo/readme.html +57 -0
  240. package/components/menu/demo/readme.md +145 -0
  241. package/components/menu/dist/auro-menu-utils.d.ts +34 -0
  242. package/components/menu/dist/auro-menu.d.ts +246 -0
  243. package/components/menu/dist/auro-menuoption.d.ts +81 -0
  244. package/components/menu/dist/dropdownVersion.d.ts +2 -0
  245. package/components/menu/dist/iconVersion.d.ts +2 -0
  246. package/components/menu/dist/index.d.ts +4 -0
  247. package/components/menu/dist/index.js +1691 -0
  248. package/components/menu/dist/registered.js +1651 -0
  249. package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
  250. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  251. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  252. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  253. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  254. package/components/radio/README.md +137 -0
  255. package/components/radio/demo/api.html +59 -0
  256. package/components/radio/demo/api.js +19 -0
  257. package/components/radio/demo/api.md +602 -0
  258. package/components/radio/demo/api.min.js +1951 -0
  259. package/components/radio/demo/index.html +56 -0
  260. package/components/radio/demo/index.js +8 -0
  261. package/components/radio/demo/index.md +150 -0
  262. package/components/radio/demo/index.min.js +1908 -0
  263. package/components/radio/demo/readme.html +57 -0
  264. package/components/radio/demo/readme.md +137 -0
  265. package/components/radio/dist/auro-radio-group.d.ts +194 -0
  266. package/components/radio/dist/auro-radio.d.ts +147 -0
  267. package/components/radio/dist/helptextVersion.d.ts +2 -0
  268. package/components/radio/dist/index.d.ts +3 -0
  269. package/components/radio/dist/index.js +1857 -0
  270. package/components/radio/dist/registered.js +1858 -0
  271. package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
  272. package/components/radio/dist/styles/color-css.d.ts +2 -0
  273. package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
  274. package/components/radio/dist/styles/style-css.d.ts +2 -0
  275. package/components/radio/dist/styles/tokens-css.d.ts +2 -0
  276. package/components/select/README.md +145 -0
  277. package/components/select/demo/api.html +77 -0
  278. package/components/select/demo/api.js +35 -0
  279. package/components/select/demo/api.md +1413 -0
  280. package/components/select/demo/api.min.js +10502 -0
  281. package/components/select/demo/index.html +73 -0
  282. package/components/select/demo/index.js +9 -0
  283. package/components/select/demo/index.md +1151 -0
  284. package/components/select/demo/index.min.js +10390 -0
  285. package/components/select/demo/readme.html +57 -0
  286. package/components/select/demo/readme.md +145 -0
  287. package/components/select/dist/auro-select.d.ts +512 -0
  288. package/components/select/dist/bibtemplateVersion.d.ts +2 -0
  289. package/components/select/dist/dropdownVersion.d.ts +2 -0
  290. package/components/select/dist/helptextVersion.d.ts +2 -0
  291. package/components/select/dist/index.d.ts +2 -0
  292. package/components/select/dist/index.js +8898 -0
  293. package/components/select/dist/registered.js +8898 -0
  294. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  295. package/components/select/dist/styles/style-css.d.ts +2 -0
  296. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  297. package/package.json +218 -0
@@ -0,0 +1,602 @@
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 overriding the optional display text "(optional)", which appears next to the label. |
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
+ | [value](#value) | `value` | `string` | | |
66
+
67
+ ## Methods
68
+
69
+ | Method | Type | Description |
70
+ |---------|------------|------------------------------------|
71
+ | [reset](#reset) | `(): void` | Resets component to initial state. |
72
+
73
+ ## Events
74
+
75
+ | Event | Type | Description |
76
+ |----------------------|--------------------|--------------------------------------------------|
77
+ | `auroRadio-blur` | `CustomEvent<any>` | Notifies that the component has lost focus. |
78
+ | `auroRadio-selected` | `CustomEvent<any>` | Notifies that the component has been marked as checked/selected. |
79
+ | [change](#change) | `CustomEvent<any>` | (Deprecated) Notifies when checked value is changed. |
80
+ | [focusSelected](#focusSelected) | `CustomEvent<any>` | Notifies that the component has gained focus. |
81
+ | [input](#input) | `InputEvent` | Notifies when when checked value is changed by user's interface. |
82
+ | [resetRadio](#resetRadio) | `CustomEvent<any>` | Notifies that the component has reset the checked/selected state. |
83
+ | [toggleSelected](#toggleSelected) | `CustomEvent<any>` | Notifies that the component has toggled the checked/selected state. |
84
+
85
+ ## CSS Shadow Parts
86
+
87
+ | Part | Description |
88
+ |---------------|-------------------------------------------|
89
+ | [radio](#radio) | apply css to a specific checkbox. |
90
+ | `radio-input` | apply css to a specific checkbox's input. |
91
+ | `radio-label` | apply css to a specific checkbox's label. |
92
+ <!-- AURO-GENERATED-CONTENT:END -->
93
+
94
+ ## API Examples
95
+
96
+ ### Default
97
+
98
+ The following example illustrates the default use of the `<auro-radio>` custom element.
99
+
100
+ <div class="exampleWrapper">
101
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
102
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
103
+ <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
104
+ <!-- AURO-GENERATED-CONTENT:END -->
105
+ </div>
106
+ <div class="exampleWrapper--ondark" aria-hidden>
107
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
108
+ <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
109
+ <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" onDark></auro-radio>
110
+ <!-- AURO-GENERATED-CONTENT:END -->
111
+ </div>
112
+ <auro-accordion alignRight>
113
+ <span slot="trigger">See code</span>
114
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
115
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
116
+
117
+ ```html
118
+ <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
119
+ ```
120
+ <!-- AURO-GENERATED-CONTENT:END -->
121
+ <div class="exampleWrapper--ondark" aria-hidden>
122
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
123
+ <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
124
+ <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" onDark></auro-radio>
125
+ <!-- AURO-GENERATED-CONTENT:END -->
126
+ </div>
127
+ </auro-accordion>
128
+
129
+ ### Default Group
130
+
131
+ 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>`.
132
+
133
+ <div class="exampleWrapper">
134
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicGroup.html) -->
135
+ <!-- The below content is automatically added from ./../apiExamples/basicGroup.html -->
136
+ <auro-radio-group>
137
+ <span slot="legend">Form label goes here</span>
138
+ <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
139
+ <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
140
+ <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
141
+ </auro-radio-group>
142
+ <!-- AURO-GENERATED-CONTENT:END -->
143
+ </div>
144
+ <div class="exampleWrapper--ondark" aria-hidden>
145
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkGroup.html) -->
146
+ <!-- The below content is automatically added from ./../apiExamples/onDarkGroup.html -->
147
+ <auro-radio-group onDark>
148
+ <span slot="legend">Form label goes here</span>
149
+ <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
150
+ <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
151
+ <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
152
+ </auro-radio-group>
153
+ <!-- AURO-GENERATED-CONTENT:END -->
154
+ </div>
155
+ <auro-accordion alignRight>
156
+ <span slot="trigger">See code</span>
157
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicGroup.html) -->
158
+ <!-- The below code snippet is automatically added from ./../apiExamples/basicGroup.html -->
159
+ ```html
160
+ <auro-radio-group>
161
+ <span slot="legend">Form label goes here</span>
162
+ <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
163
+ <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
164
+ <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
165
+ </auro-radio-group>
166
+ ```
167
+ <!-- AURO-GENERATED-CONTENT:END -->
168
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkGroup.html) -->
169
+ <!-- The below content is automatically added from ./../apiExamples/onDarkGroup.html -->
170
+ <auro-radio-group onDark>
171
+ <span slot="legend">Form label goes here</span>
172
+ <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
173
+ <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
174
+ <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
175
+ </auro-radio-group>
176
+ <!-- AURO-GENERATED-CONTENT:END -->
177
+ </auro-accordion>
178
+
179
+ ### Checked
180
+
181
+ Use the `checked` attribute to pre-select a `<auro-radio>` element.
182
+
183
+ <div class="exampleWrapper">
184
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/checked.html) -->
185
+ <!-- The below content is automatically added from ./../apiExamples/checked.html -->
186
+ <auro-radio-group>
187
+ <span slot="legend">Form label goes here</span>
188
+ <auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
189
+ <auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
190
+ <auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
191
+ </auro-radio-group>
192
+ <!-- AURO-GENERATED-CONTENT:END -->
193
+ </div>
194
+ <div class="exampleWrapper--ondark" aria-hidden>
195
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkChecked.html) -->
196
+ <!-- The below content is automatically added from ./../apiExamples/onDarkChecked.html -->
197
+ <auro-radio-group onDark>
198
+ <span slot="legend">Form label goes here</span>
199
+ <auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
200
+ <auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
201
+ <auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
202
+ </auro-radio-group>
203
+ <!-- AURO-GENERATED-CONTENT:END -->
204
+ </div>
205
+ <auro-accordion alignRight>
206
+ <span slot="trigger">See code</span>
207
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/checked.html) -->
208
+ <!-- The below code snippet is automatically added from ./../apiExamples/checked.html -->
209
+ ```html
210
+ <auro-radio-group>
211
+ <span slot="legend">Form label goes here</span>
212
+ <auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
213
+ <auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
214
+ <auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
215
+ </auro-radio-group>
216
+ ```
217
+ <!-- AURO-GENERATED-CONTENT:END -->
218
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkChecked.html) -->
219
+ <!-- The below content is automatically added from ./../apiExamples/onDarkChecked.html -->
220
+ <auro-radio-group onDark>
221
+ <span slot="legend">Form label goes here</span>
222
+ <auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
223
+ <auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
224
+ <auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
225
+ </auro-radio-group>
226
+ <!-- AURO-GENERATED-CONTENT:END -->
227
+ </auro-accordion>
228
+
229
+ ### Disabled
230
+
231
+ Use the `disabled` attribute to disable singular `<auro-radio>` elements or the entire `<auro-radio-group>`.
232
+
233
+ <div class="exampleWrapper">
234
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
235
+ <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
236
+ <auro-radio-group>
237
+ <span slot="legend">Form label goes here</span>
238
+ <auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
239
+ <auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
240
+ <auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
241
+ </auro-radio-group>
242
+ <auro-radio-group disabled>
243
+ <span slot="legend">Form label goes here</span>
244
+ <auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
245
+ <auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
246
+ <auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
247
+ </auro-radio-group>
248
+ <!-- AURO-GENERATED-CONTENT:END -->
249
+ </div>
250
+ <div class="exampleWrapper--ondark" aria-hidden>
251
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
252
+ <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
253
+ <auro-radio-group onDark>
254
+ <span slot="legend">Form label goes here</span>
255
+ <auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
256
+ <auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
257
+ <auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
258
+ </auro-radio-group>
259
+ <auro-radio-group onDark disabled>
260
+ <span slot="legend">Form label goes here</span>
261
+ <auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
262
+ <auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
263
+ <auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
264
+ </auro-radio-group>
265
+ <!-- AURO-GENERATED-CONTENT:END -->
266
+ </div>
267
+ <auro-accordion alignRight>
268
+ <span slot="trigger">See code</span>
269
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
270
+ <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
271
+ ```html
272
+ <auro-radio-group>
273
+ <span slot="legend">Form label goes here</span>
274
+ <auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
275
+ <auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
276
+ <auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
277
+ </auro-radio-group>
278
+ <auro-radio-group disabled>
279
+ <span slot="legend">Form label goes here</span>
280
+ <auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
281
+ <auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
282
+ <auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
283
+ </auro-radio-group>
284
+ ```
285
+ <!-- AURO-GENERATED-CONTENT:END -->
286
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
287
+ <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
288
+ <auro-radio-group onDark>
289
+ <span slot="legend">Form label goes here</span>
290
+ <auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
291
+ <auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
292
+ <auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
293
+ </auro-radio-group>
294
+ <auro-radio-group onDark disabled>
295
+ <span slot="legend">Form label goes here</span>
296
+ <auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
297
+ <auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
298
+ <auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
299
+ </auro-radio-group>
300
+ <!-- AURO-GENERATED-CONTENT:END -->
301
+ </auro-accordion>
302
+
303
+ ### Error
304
+
305
+ Use the `error` attribute to apply a persistent custom error that supersedes the HTML5 validation logic.
306
+
307
+ A custom error message can be set using the `error` attribute, or it can be used in conjunction with the `setCustomValidityCustomError` attribute.
308
+
309
+ <div class="exampleWrapper">
310
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
311
+ <!-- The below content is automatically added from ./../apiExamples/error.html -->
312
+ <auro-radio-group error="There is an error with this form entry">
313
+ <span slot="legend">Form label goes here</span>
314
+ <auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
315
+ <auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
316
+ <auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
317
+ </auro-radio-group>
318
+ <!-- AURO-GENERATED-CONTENT:END -->
319
+ </div>
320
+ <div class="exampleWrapper--ondark" aria-hidden>
321
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
322
+ <!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
323
+ <auro-radio-group onDark error="There is an error with this form entry">
324
+ <span slot="legend">Form label goes here</span>
325
+ <auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
326
+ <auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
327
+ <auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
328
+ </auro-radio-group>
329
+ <!-- AURO-GENERATED-CONTENT:END -->
330
+ </div>
331
+ <auro-accordion alignRight>
332
+ <span slot="trigger">See code</span>
333
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
334
+ <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
335
+ ```html
336
+ <auro-radio-group error="There is an error with this form entry">
337
+ <span slot="legend">Form label goes here</span>
338
+ <auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
339
+ <auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
340
+ <auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
341
+ </auro-radio-group>
342
+ ```
343
+ <!-- AURO-GENERATED-CONTENT:END -->
344
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
345
+ <!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
346
+ <auro-radio-group onDark error="There is an error with this form entry">
347
+ <span slot="legend">Form label goes here</span>
348
+ <auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
349
+ <auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
350
+ <auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
351
+ </auro-radio-group>
352
+ <!-- AURO-GENERATED-CONTENT:END -->
353
+ </auro-accordion>
354
+
355
+ ### Horizontal Group
356
+
357
+ Using the `horizontal` attribute will render the `auro-radio` elements in a horizontal line.
358
+
359
+ **Note**: Using the horizontal attribute has a limit of 3 options. Beyond three, options will be listed in vertically.
360
+
361
+ <div class="exampleWrapper">
362
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/horizontal.html) -->
363
+ <!-- The below content is automatically added from ./../apiExamples/horizontal.html -->
364
+ <auro-radio-group horizontal>
365
+ <span slot="legend">Form label goes here</span>
366
+ <auro-radio id="horizontalRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
367
+ <auro-radio id="horizontalRadio2" label="No" name="radioDemo" value="no"></auro-radio>
368
+ <auro-radio id="horizontalRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
369
+ </auro-radio-group>
370
+ <!-- AURO-GENERATED-CONTENT:END -->
371
+ </div>
372
+ <auro-accordion alignRight>
373
+ <span slot="trigger">See code</span>
374
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/horizontal.html) -->
375
+ <!-- The below code snippet is automatically added from ./../apiExamples/horizontal.html -->
376
+
377
+ ```html
378
+ <auro-radio-group horizontal>
379
+ <span slot="legend">Form label goes here</span>
380
+ <auro-radio id="horizontalRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
381
+ <auro-radio id="horizontalRadio2" label="No" name="radioDemo" value="no"></auro-radio>
382
+ <auro-radio id="horizontalRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
383
+ </auro-radio-group>
384
+ ```
385
+ <!-- AURO-GENERATED-CONTENT:END -->
386
+ </auro-accordion>
387
+
388
+ ### Required
389
+
390
+ 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.
391
+
392
+ <div class="exampleWrapper">
393
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
394
+ <!-- The below content is automatically added from ./../apiExamples/required.html -->
395
+ <auro-radio-group required setCustomValidityValueMissing="value missing">
396
+ <span slot="legend">Form label goes here</span>
397
+ <auro-radio id="requiredRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
398
+ <auro-radio id="requiredRadio2" label="No" name="radioDemo" value="no"></auro-radio>
399
+ <auro-radio id="requiredRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
400
+ </auro-radio-group>
401
+ <!-- AURO-GENERATED-CONTENT:END -->
402
+ </div>
403
+ <auro-accordion alignRight>
404
+ <span slot="trigger">See code</span>
405
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
406
+ <!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
407
+
408
+ ```html
409
+ <auro-radio-group required setCustomValidityValueMissing="value missing">
410
+ <span slot="legend">Form label goes here</span>
411
+ <auro-radio id="requiredRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
412
+ <auro-radio id="requiredRadio2" label="No" name="radioDemo" value="no"></auro-radio>
413
+ <auro-radio id="requiredRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
414
+ </auro-radio-group>
415
+ ```
416
+ <!-- AURO-GENERATED-CONTENT:END -->
417
+ </auro-accordion>
418
+
419
+ ### Custom optional label
420
+
421
+ The `<auro-radio-group>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
422
+
423
+ <div class="exampleWrapper">
424
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
425
+ <!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
426
+ <auro-radio-group>
427
+ <span slot="legend">Form label goes here</span>
428
+ <span slot="optionalLabel">(add custom label here)</span>
429
+ <auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
430
+ <auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
431
+ <auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
432
+ </auro-radio-group>
433
+ <!-- AURO-GENERATED-CONTENT:END -->
434
+ </div>
435
+ <auro-accordion alignRight>
436
+ <span slot="trigger">See code</span>
437
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
438
+ <!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
439
+
440
+ ```html
441
+ <auro-radio-group>
442
+ <span slot="legend">Form label goes here</span>
443
+ <span slot="optionalLabel">(add custom label here)</span>
444
+ <auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
445
+ <auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
446
+ <auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
447
+ </auro-radio-group>
448
+ ```
449
+ <!-- AURO-GENERATED-CONTENT:END -->
450
+ </auro-accordion>
451
+
452
+ ### Reset State
453
+
454
+ Use the `reset()` method to reset the `<auro-radio-group>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
455
+
456
+ <div class="exampleWrapper">
457
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/resetState.html) -->
458
+ <!-- The below content is automatically added from ./../apiExamples/resetState.html -->
459
+ <auro-button id="resetStateBtn">Reset</auro-button>
460
+ <br/><br/>
461
+ <auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
462
+ <span slot="legend">Form label goes here</span>
463
+ <auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
464
+ <auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
465
+ <auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
466
+ </auro-radio-group>
467
+ <!-- AURO-GENERATED-CONTENT:END -->
468
+ </div>
469
+ <auro-accordion alignRight>
470
+ <span slot="trigger">See code</span>
471
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.html) -->
472
+ <!-- The below code snippet is automatically added from ./../apiExamples/resetState.html -->
473
+
474
+ ```html
475
+ <auro-button id="resetStateBtn">Reset</auro-button>
476
+ <br/><br/>
477
+ <auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
478
+ <span slot="legend">Form label goes here</span>
479
+ <auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
480
+ <auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
481
+ <auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
482
+ </auro-radio-group>
483
+ ```
484
+ <!-- AURO-GENERATED-CONTENT:END -->
485
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.js) -->
486
+ <!-- The below code snippet is automatically added from ./../apiExamples/resetState.js -->
487
+
488
+ ```js
489
+ export function resetStateExample() {
490
+ const elem = document.querySelector('#resetStateExample');
491
+
492
+ document.querySelector('#resetStateBtn').addEventListener('click', () => {
493
+ elem.reset();
494
+ });
495
+ }
496
+ ```
497
+ <!-- AURO-GENERATED-CONTENT:END -->
498
+ </auro-accordion>
499
+
500
+ ### Dynamic Example
501
+
502
+ This example demonstrates a data drive approach to rendering `<auro-radio>` buttons.
503
+
504
+ **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.
505
+
506
+ <div class="exampleWrapper">
507
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamic.html) -->
508
+ <!-- The below content is automatically added from ./../apiExamples/dynamic.html -->
509
+ <auro-radio-group required id="dynamicExample">
510
+ <span slot="legend">Form label goes here</span>
511
+ </auro-radio-group>
512
+ <!-- AURO-GENERATED-CONTENT:END -->
513
+ </div>
514
+ <auro-accordion alignRight>
515
+ <span slot="trigger">See code</span>
516
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic.html) -->
517
+ <!-- The below code snippet is automatically added from ./../apiExamples/dynamic.html -->
518
+
519
+ ```html
520
+ <auro-radio-group required id="dynamicExample">
521
+ <span slot="legend">Form label goes here</span>
522
+ </auro-radio-group>
523
+ ```
524
+ <!-- AURO-GENERATED-CONTENT:END -->
525
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic.js) -->
526
+ <!-- The below code snippet is automatically added from ./../apiExamples/dynamic.js -->
527
+
528
+ ```js
529
+ export function dynamicExample() {
530
+ const values = ['Yes', 'No', 'Maybe'];
531
+ const radioGroup = document.getElementById('dynamicExample');
532
+
533
+ for (let i = 0; i < values.length; i++) {
534
+ const radio = document.createElement('auro-radio');
535
+
536
+ radio.id = `dynamicRadio${i}`;
537
+ radio.label = values[i];
538
+ radio.name = 'radioDemo';
539
+ radio.value = values[i];
540
+ radio.textContent = values[i];
541
+
542
+ radioGroup.appendChild(radio);
543
+ }
544
+ }
545
+ ```
546
+ <!-- AURO-GENERATED-CONTENT:END -->
547
+ </auro-accordion>
548
+
549
+ ## Multiline Label
550
+
551
+ Example to show text wrapping on multiline labels.
552
+
553
+ <div class="exampleWrapper">
554
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/multilineGroup.html) -->
555
+ <!-- The below content is automatically added from ./../apiExamples/multilineGroup.html -->
556
+ <auro-radio-group>
557
+ <span slot="legend">Form label goes here</span>
558
+ <auro-radio id="basicGroupRadio1" label="Sample text" name="radioDemo" value="option1"></auro-radio>
559
+ <auro-radio id="basicGroupRadio2" label="This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines." name="radioDemo" value="option2"></auro-radio>
560
+ <auro-radio id="basicGroupRadio3" label="Sample text" name="radioDemo" value="option3"></auro-radio>
561
+ </auro-radio-group>
562
+ <!-- AURO-GENERATED-CONTENT:END -->
563
+ </div>
564
+ <auro-accordion alignRight>
565
+ <span slot="trigger">See code</span>
566
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/multilineGroup.html) -->
567
+ <!-- The below code snippet is automatically added from ./../apiExamples/multilineGroup.html -->
568
+
569
+ ```html
570
+ <auro-radio-group>
571
+ <span slot="legend">Form label goes here</span>
572
+ <auro-radio id="basicGroupRadio1" label="Sample text" name="radioDemo" value="option1"></auro-radio>
573
+ <auro-radio id="basicGroupRadio2" label="This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines." name="radioDemo" value="option2"></auro-radio>
574
+ <auro-radio id="basicGroupRadio3" label="Sample text" name="radioDemo" value="option3"></auro-radio>
575
+ </auro-radio-group>
576
+ ```
577
+ <!-- AURO-GENERATED-CONTENT:END -->
578
+ </auro-accordion>
579
+
580
+ ## Theme Support
581
+
582
+ The component may be restyled using the following code sample and changing the values of the following token(s).
583
+
584
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
585
+ <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
586
+
587
+ ```scss
588
+ @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
589
+
590
+ :host {
591
+ // auro-radio-group colors
592
+ --ds-auro-radio-group-label-color: inherit;
593
+
594
+ // auro-radio colors
595
+ --ds-auro-radio-btn-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
596
+ --ds-auro-radio-btn-fill-color: transparent;
597
+ --ds-auro-radio-btn-inset-color: transparent;
598
+ --ds-auro-radio-label-color: inherit;
599
+ --ds-auro-radio-tap-color: transparent;
600
+ }
601
+ ```
602
+ <!-- AURO-GENERATED-CONTENT:END -->