@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.2 → 0.0.0-pr1451.21

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 (254) hide show
  1. package/components/checkbox/README.md +11 -27
  2. package/components/checkbox/demo/accessibility.html +49 -0
  3. package/components/checkbox/demo/accessibility.md +44 -0
  4. package/components/checkbox/demo/api.html +17 -25
  5. package/components/checkbox/demo/api.md +40 -416
  6. package/components/checkbox/demo/api.min.js +5 -4
  7. package/components/checkbox/demo/customize.html +52 -0
  8. package/components/checkbox/demo/customize.md +361 -0
  9. package/components/checkbox/demo/demo-support.js +60 -0
  10. package/components/checkbox/demo/design.html +52 -0
  11. package/components/checkbox/demo/design.md +149 -0
  12. package/components/checkbox/demo/getting-started.html +52 -0
  13. package/components/checkbox/demo/getting-started.md +261 -0
  14. package/components/checkbox/demo/index.html +17 -20
  15. package/components/checkbox/demo/index.md +144 -29
  16. package/components/checkbox/demo/index.min.js +5 -4
  17. package/components/checkbox/demo/keyboard-behavior.html +49 -0
  18. package/components/checkbox/demo/keyboard-behavior.md +0 -3
  19. package/components/checkbox/demo/layout.md +30 -0
  20. package/components/checkbox/demo/readme.html +10 -17
  21. package/components/checkbox/demo/readme.md +11 -27
  22. package/components/checkbox/demo/styles.css +974 -0
  23. package/components/checkbox/demo/voiceover.html +49 -0
  24. package/components/checkbox/demo/voiceover.md +37 -0
  25. package/components/checkbox/dist/auro-checkbox.d.ts +1 -0
  26. package/components/checkbox/dist/index.js +5 -4
  27. package/components/checkbox/dist/registered.js +5 -4
  28. package/components/combobox/README.md +8 -29
  29. package/components/combobox/demo/accessibility.html +2 -20
  30. package/components/combobox/demo/accessibility.md +1 -1
  31. package/components/combobox/demo/api.html +5 -52
  32. package/components/combobox/demo/api.md +53 -2261
  33. package/components/combobox/demo/api.min.js +15 -12
  34. package/components/combobox/demo/customize.html +53 -0
  35. package/components/combobox/demo/customize.js +24 -0
  36. package/components/combobox/demo/customize.md +1249 -0
  37. package/components/combobox/demo/customize.min.js +18132 -0
  38. package/components/combobox/demo/demo-support.js +60 -0
  39. package/components/combobox/demo/design.html +2 -43
  40. package/components/combobox/demo/design.md +4 -4
  41. package/components/combobox/demo/getting-started.html +53 -0
  42. package/components/combobox/demo/{install.js → getting-started.js} +2 -5
  43. package/components/combobox/demo/getting-started.md +397 -0
  44. package/components/combobox/demo/{install.min.js → getting-started.min.js} +14 -38
  45. package/components/combobox/demo/index.html +4 -47
  46. package/components/combobox/demo/index.md +3 -569
  47. package/components/combobox/demo/index.min.js +15 -12
  48. package/components/combobox/demo/keyboard-behavior.html +2 -20
  49. package/components/combobox/demo/keyboard-behavior.md +2 -2
  50. package/components/combobox/demo/layout.md +2 -2
  51. package/components/combobox/demo/readme.html +2 -43
  52. package/components/combobox/demo/readme.md +8 -29
  53. package/components/combobox/demo/styles.css +98 -105
  54. package/components/combobox/demo/voiceover.html +2 -20
  55. package/components/combobox/demo/voiceover.md +1 -1
  56. package/components/combobox/dist/index.js +12 -10
  57. package/components/combobox/dist/registered.js +12 -10
  58. package/components/counter/README.md +21 -51
  59. package/components/counter/demo/accessibility.html +49 -0
  60. package/components/counter/demo/accessibility.md +34 -0
  61. package/components/counter/demo/api.html +12 -20
  62. package/components/counter/demo/api.md +49 -1299
  63. package/components/counter/demo/api.min.js +6 -6
  64. package/components/counter/demo/customize.html +53 -0
  65. package/components/counter/demo/customize.md +650 -0
  66. package/components/counter/demo/demo-support.js +60 -0
  67. package/components/counter/demo/design.html +52 -0
  68. package/components/counter/demo/design.md +192 -0
  69. package/components/counter/demo/getting-started.html +54 -0
  70. package/components/counter/demo/getting-started.md +332 -0
  71. package/components/counter/demo/index.html +14 -19
  72. package/components/counter/demo/index.md +113 -47
  73. package/components/counter/demo/index.min.js +6 -6
  74. package/components/counter/demo/keyboard-behavior.html +49 -0
  75. package/components/counter/demo/keyboard-behavior.md +1 -1
  76. package/components/counter/demo/keyboardBehavior.html +7 -39
  77. package/components/counter/demo/layout.md +10 -0
  78. package/components/counter/demo/readme.html +11 -15
  79. package/components/counter/demo/readme.md +21 -51
  80. package/components/counter/demo/styles.css +974 -0
  81. package/components/counter/demo/voiceover.html +51 -0
  82. package/components/counter/demo/voiceover.md +80 -0
  83. package/components/counter/dist/index.js +6 -6
  84. package/components/counter/dist/registered.js +6 -6
  85. package/components/datepicker/README.md +10 -24
  86. package/components/datepicker/demo/accessibility.html +50 -0
  87. package/components/datepicker/demo/accessibility.md +64 -0
  88. package/components/datepicker/demo/api.md +69 -1739
  89. package/components/datepicker/demo/api.min.js +14 -14
  90. package/components/datepicker/demo/customize.html +53 -0
  91. package/components/datepicker/demo/customize.md +723 -0
  92. package/components/datepicker/demo/demo-support.js +60 -0
  93. package/components/{select/demo/layout.html → datepicker/demo/design.html} +7 -47
  94. package/components/datepicker/demo/design.md +158 -0
  95. package/components/datepicker/demo/getting-started.html +53 -0
  96. package/components/datepicker/demo/getting-started.md +237 -0
  97. package/components/datepicker/demo/index.html +14 -34
  98. package/components/datepicker/demo/index.md +160 -103
  99. package/components/datepicker/demo/index.min.js +14 -14
  100. package/components/datepicker/demo/keyboard-behavior.html +12 -33
  101. package/components/datepicker/demo/layout.md +92 -0
  102. package/components/datepicker/demo/readme.md +10 -24
  103. package/components/datepicker/demo/styles.css +974 -0
  104. package/components/{dropdown/demo/keyboardBehavior.html → datepicker/demo/voiceover.html} +14 -36
  105. package/components/datepicker/demo/voiceover.md +98 -0
  106. package/components/datepicker/dist/index.js +14 -14
  107. package/components/datepicker/dist/registered.js +14 -14
  108. package/components/dropdown/README.md +0 -25
  109. package/components/dropdown/demo/accessibility.html +49 -0
  110. package/components/dropdown/demo/accessibility.md +45 -0
  111. package/components/dropdown/demo/api.html +10 -19
  112. package/components/dropdown/demo/api.md +40 -1364
  113. package/components/dropdown/demo/api.min.js +2 -2
  114. package/components/dropdown/demo/customize.html +54 -0
  115. package/components/dropdown/demo/customize.md +780 -0
  116. package/components/dropdown/demo/demo-support.js +60 -0
  117. package/components/dropdown/demo/design.html +52 -0
  118. package/components/dropdown/demo/design.md +186 -0
  119. package/components/dropdown/demo/getting-started.html +54 -0
  120. package/components/dropdown/demo/getting-started.md +317 -0
  121. package/components/dropdown/demo/index.html +12 -20
  122. package/components/dropdown/demo/index.md +70 -225
  123. package/components/dropdown/demo/index.min.js +2 -2
  124. package/components/dropdown/demo/keyboard-behavior.html +49 -0
  125. package/components/dropdown/demo/keyboard-behavior.md +4 -8
  126. package/components/dropdown/demo/layout.md +21 -0
  127. package/components/dropdown/demo/readme.html +7 -20
  128. package/components/dropdown/demo/readme.md +0 -25
  129. package/components/dropdown/demo/styles.css +974 -0
  130. package/components/dropdown/demo/voiceover.html +51 -0
  131. package/components/dropdown/demo/voiceover.md +63 -0
  132. package/components/dropdown/dist/index.js +2 -2
  133. package/components/dropdown/dist/registered.js +2 -2
  134. package/components/form/README.md +9 -13
  135. package/components/form/demo/accessibility.html +51 -0
  136. package/components/form/demo/accessibility.md +23 -0
  137. package/components/form/demo/api.html +11 -14
  138. package/components/form/demo/api.md +14 -290
  139. package/components/form/demo/api.min.js +53 -50
  140. package/components/form/demo/customize.html +54 -0
  141. package/components/form/demo/customize.md +246 -0
  142. package/components/form/demo/demo-support.js +60 -0
  143. package/components/form/demo/getting-started.html +54 -0
  144. package/components/form/demo/getting-started.md +291 -0
  145. package/components/form/demo/index.html +12 -14
  146. package/components/form/demo/index.md +66 -96
  147. package/components/form/demo/index.min.js +53 -50
  148. package/components/form/demo/keyboard-behavior.html +51 -0
  149. package/components/form/demo/readme.html +12 -17
  150. package/components/form/demo/readme.md +9 -13
  151. package/components/form/demo/styles.css +974 -0
  152. package/components/form/demo/voiceover.html +51 -0
  153. package/components/form/demo/voiceover.md +36 -0
  154. package/components/helptext/dist/index.js +1 -1
  155. package/components/helptext/dist/registered.js +1 -1
  156. package/components/input/README.md +17 -28
  157. package/components/input/demo/accessibility.html +38 -0
  158. package/components/input/demo/accessibility.md +69 -0
  159. package/components/input/demo/api.html +17 -22
  160. package/components/input/demo/api.js +4 -23
  161. package/components/input/demo/api.md +67 -1267
  162. package/components/input/demo/api.min.js +6 -98
  163. package/components/input/demo/customize.html +54 -0
  164. package/components/input/demo/customize.js +25 -0
  165. package/components/input/demo/customize.md +1372 -0
  166. package/components/input/demo/customize.min.js +7431 -0
  167. package/components/input/demo/demo-support.js +60 -0
  168. package/components/input/demo/design.html +39 -0
  169. package/components/input/demo/design.md +224 -0
  170. package/components/input/demo/getting-started.html +53 -0
  171. package/components/input/demo/getting-started.js +8 -0
  172. package/components/input/demo/getting-started.md +312 -0
  173. package/components/input/demo/getting-started.min.js +7369 -0
  174. package/components/input/demo/index.html +16 -22
  175. package/components/input/demo/index.js +0 -11
  176. package/components/input/demo/index.md +171 -139
  177. package/components/input/demo/index.min.js +6 -18
  178. package/components/input/demo/keyboard-behavior.html +38 -0
  179. package/components/input/demo/layout.md +77 -0
  180. package/components/input/demo/readme.md +17 -28
  181. package/components/input/demo/styles.css +974 -0
  182. package/components/input/demo/voiceover.html +38 -0
  183. package/components/input/demo/voiceover.md +70 -0
  184. package/components/input/dist/base-input.d.ts +1 -0
  185. package/components/input/dist/index.js +6 -6
  186. package/components/input/dist/registered.js +6 -6
  187. package/components/menu/README.md +1 -5
  188. package/components/menu/demo/api.md +43 -43
  189. package/components/menu/demo/api.min.js +2 -2
  190. package/components/menu/demo/index.md +1 -1
  191. package/components/menu/demo/index.min.js +2 -2
  192. package/components/menu/demo/readme.md +1 -5
  193. package/components/menu/dist/index.js +2 -2
  194. package/components/menu/dist/registered.js +2 -2
  195. package/components/radio/README.md +9 -22
  196. package/components/radio/demo/accessibility.html +51 -0
  197. package/components/radio/demo/accessibility.md +44 -0
  198. package/components/radio/demo/api.html +13 -20
  199. package/components/radio/demo/api.md +44 -589
  200. package/components/radio/demo/api.min.js +3 -3
  201. package/components/radio/demo/customize.html +53 -0
  202. package/components/radio/demo/customize.md +368 -0
  203. package/components/radio/demo/demo-support.js +60 -0
  204. package/components/radio/demo/design.html +52 -0
  205. package/components/radio/demo/design.md +143 -0
  206. package/components/radio/demo/getting-started.html +54 -0
  207. package/components/radio/demo/getting-started.md +296 -0
  208. package/components/radio/demo/index.html +16 -19
  209. package/components/radio/demo/index.md +110 -45
  210. package/components/radio/demo/index.min.js +3 -3
  211. package/components/radio/demo/keyboard-behavior.html +51 -0
  212. package/components/radio/demo/layout.md +30 -0
  213. package/components/radio/demo/readme.html +11 -17
  214. package/components/radio/demo/readme.md +9 -22
  215. package/components/radio/demo/styles.css +974 -0
  216. package/components/radio/demo/voiceover.html +51 -0
  217. package/components/radio/demo/voiceover.md +43 -0
  218. package/components/radio/dist/index.js +3 -3
  219. package/components/radio/dist/registered.js +3 -3
  220. package/components/select/README.md +7 -4
  221. package/components/select/demo/accessibility.html +5 -21
  222. package/components/select/demo/accessibility.md +1 -1
  223. package/components/select/demo/api.html +3 -48
  224. package/components/select/demo/api.md +52 -2342
  225. package/components/select/demo/customize.html +54 -0
  226. package/components/select/demo/customize.js +11 -0
  227. package/components/select/demo/customize.md +1049 -0
  228. package/components/select/demo/{api.min.js → customize.min.js} +12 -113
  229. package/components/select/demo/demo-support.js +60 -0
  230. package/components/select/demo/design.html +3 -44
  231. package/components/select/demo/design.md +2 -2
  232. package/components/select/demo/getting-started.html +5 -76
  233. package/components/select/demo/getting-started.js +20 -3
  234. package/components/select/demo/getting-started.md +97 -705
  235. package/components/select/demo/getting-started.min.js +58 -9
  236. package/components/select/demo/index.html +4 -43
  237. package/components/select/demo/index.js +5 -3
  238. package/components/select/demo/index.md +2 -2
  239. package/components/select/demo/index.min.js +14 -9
  240. package/components/select/demo/keyboard-behavior.html +6 -47
  241. package/components/select/demo/keyboard-behavior.md +5 -6
  242. package/components/select/demo/keyboardBehavior.html +4 -46
  243. package/components/select/demo/readme.html +3 -44
  244. package/components/select/demo/readme.md +7 -4
  245. package/components/select/demo/styles.css +57 -109
  246. package/components/select/demo/voiceover.html +3 -30
  247. package/components/select/dist/index.js +5 -5
  248. package/components/select/dist/registered.js +5 -5
  249. package/custom-elements.json +249 -246
  250. package/package.json +3 -3
  251. package/components/combobox/demo/install.html +0 -94
  252. package/components/combobox/demo/install.md +0 -98
  253. package/components/select/demo/api.js +0 -39
  254. package/components/select/demo/install.md +0 -92
@@ -9,42 +9,42 @@ The `auro-dropdown` element provides a way to place content in a bib that can be
9
9
 
10
10
  | Property | Attribute | Type | Default | Description |
11
11
  |---------------------------|---------------------------|--------------------------------------------------|------------------|--------------------------------------------------|
12
- | `a11yRole` | | `string` | | The value for the role attribute of the trigger element. |
13
- | [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
14
- | [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | | If declared, bib's position will be automatically calculated where to appear. |
15
- | [chevron](#chevron) | `chevron` | `boolean` | | If declared, the dropdown displays a chevron on the right. |
16
- | [disableEventShow](#disableEventShow) | `disableEventShow` | `boolean` | | If declared, the dropdown will only show by calling the API .show() public method. |
17
- | [disableKeyboardHandling](#disableKeyboardHandling) | `disableKeyboardHandling` | `boolean` | | If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior. |
18
- | [disabled](#disabled) | `disabled` | `boolean` | | If declared, the dropdown is not interactive. |
19
- | [error](#error) | `error` | `boolean` | | If declared, will apply error UI to the dropdown. |
20
- | [errorMessage](#errorMessage) | `errorMessage` | `string` | "undefined" | Contains the help text message for the current validity error. |
21
- | [focusShow](#focusShow) | `focusShow` | `boolean` | | If declared, the bib will display when focus is applied to the trigger. |
22
- | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
23
- | [hoverToggle](#hoverToggle) | `hoverToggle` | `boolean` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
24
- | [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
25
- | [isPopoverVisible](#isPopoverVisible) | `open` | `boolean` | false | If true, the dropdown bib is displayed. |
26
- | [layout](#layout) | `layout` | `'classic' \| 'emphasized' \| 'snowflake'` | "'classic'" | Sets the layout of the dropdown. |
27
- | [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
28
- | [noFlip](#noFlip) | `noFlip` | `boolean` | | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
29
- | [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | `boolean` | false | If declared, the dropdown will not hide when moving focus outside the element. |
30
- | [noToggle](#noToggle) | `noToggle` | `boolean` | | If declared, the trigger will only show the dropdown bib. |
31
- | [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
32
- | [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
33
- | [onSlotChange](#onSlotChange) | `onSlotChange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
34
- | [placement](#placement) | `placement` | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'" | Position where the bib should appear relative to the trigger. |
35
- | [shape](#shape) | | | "undefined" | |
36
- | [shift](#shift) | `shift` | `boolean` | | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
37
- | [simple](#simple) | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
38
- | [size](#size) | | | "undefined" | |
12
+ | `a11yRole` | | `string` | | The value for the role attribute of the trigger element. |
13
+ | `appearance` | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
14
+ | `autoPlacement` | `autoPlacement` | `boolean` | | If declared, bib's position will be automatically calculated where to appear. |
15
+ | `chevron` | `chevron` | `boolean` | | If declared, the dropdown displays a chevron on the right. |
16
+ | `disableEventShow` | `disableEventShow` | `boolean` | | If declared, the dropdown will only show by calling the API .show() public method. |
17
+ | `disableKeyboardHandling` | `disableKeyboardHandling` | `boolean` | | If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior. |
18
+ | `disabled` | `disabled` | `boolean` | | If declared, the dropdown is not interactive. |
19
+ | `error` | `error` | `boolean` | | If declared, will apply error UI to the dropdown. |
20
+ | `errorMessage` | `errorMessage` | `string` | "undefined" | Contains the help text message for the current validity error. |
21
+ | `focusShow` | `focusShow` | `boolean` | | If declared, the bib will display when focus is applied to the trigger. |
22
+ | `fullscreenBreakpoint` | `fullscreenBreakpoint` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
23
+ | `hoverToggle` | `hoverToggle` | `boolean` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
24
+ | `isBibFullscreen` | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
25
+ | `isPopoverVisible` | `open` | `boolean` | false | If true, the dropdown bib is displayed. |
26
+ | `layout` | `layout` | `'classic' \| 'emphasized' \| 'snowflake'` | "'classic'" | Sets the layout of the dropdown. |
27
+ | `matchWidth` | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
28
+ | `noFlip` | `noFlip` | `boolean` | | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
29
+ | `noHideOnThisFocusLoss` | `noHideOnThisFocusLoss` | `boolean` | false | If declared, the dropdown will not hide when moving focus outside the element. |
30
+ | `noToggle` | `noToggle` | `boolean` | | If declared, the trigger will only show the dropdown bib. |
31
+ | `offset` | `offset` | `number` | "0" | Gap between the trigger element and bib. |
32
+ | `onDark` | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
33
+ | `onSlotChange` | `onSlotChange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
34
+ | `placement` | `placement` | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'" | Position where the bib should appear relative to the trigger. |
35
+ | `shape` | | | "undefined" | |
36
+ | `shift` | `shift` | `boolean` | | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
37
+ | `simple` | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
38
+ | `size` | | | "undefined" | |
39
39
 
40
40
  ## Methods
41
41
 
42
42
  | Method | Type | Description |
43
- |------------------|------------|--------------------------------------------------|
44
- | [exposeCssParts](#exposeCssParts) | `(): void` | Exposes CSS parts for styling from parent components. |
45
- | [focus](#focus) | `(): void` | When bib is open, focus on the first element inside of bib.<br />If not, trigger element will get focus. |
46
- | [hide](#hide) | `(): void` | Public method to hide the dropdown. |
47
- | [show](#show) | `(): void` | Public method to show the dropdown. |
43
+ |------------------|------------|--------------------------------------------------|
44
+ | `exposeCssParts` | `(): void` | Exposes CSS parts for styling from parent components. |
45
+ | `focus` | `(): void` | When bib is open, focus on the first element inside of bib.<br />If not, trigger element will get focus. |
46
+ | `hide` | `(): void` | Public method to hide the dropdown. |
47
+ | `show` | `(): void` | Public method to show the dropdown. |
48
48
 
49
49
  ## Events
50
50
 
@@ -58,1340 +58,16 @@ The `auro-dropdown` element provides a way to place content in a bib that can be
58
58
 
59
59
  | Name | Description |
60
60
  |------------|--------------------------------------------|
61
- | | Default slot for the dropdown bib content. |
62
- | [helpText](#helpText) | Defines the content of the helpText. |
63
- | [trigger](#trigger) | Defines the content of the trigger. |
61
+ | | Default slot for the dropdown bib content. |
62
+ | `helpText` | Defines the content of the helpText. |
63
+ | `trigger` | Defines the content of the trigger. |
64
64
 
65
65
  ## CSS Shadow Parts
66
66
 
67
67
  | Part | Description |
68
- |------------|--------------------------------------------------|
69
- | [chevron](#chevron) | The collapsed/expanded state icon container. |
70
- | [helpText](#helpText) | The helpText content container. |
71
- | [size](#size) | The size of the dropdown bib. (height, width, maxHeight, maxWidth only) |
72
- | [trigger](#trigger) | The trigger content container. |
73
- <!-- AURO-GENERATED-CONTENT:END -->
74
-
75
- ## Basic
76
-
77
- The following examples demonstrate basic usage of the `auro-dropdown` component with different types of trigger content.
78
-
79
- ### Text
80
-
81
- <div class="exampleWrapper">
82
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
83
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
84
- <auro-dropdown aria-label="custom label">
85
- Lorem ipsum solar
86
- <div slot="trigger">
87
- Trigger
88
- </div>
89
- </auro-dropdown>
90
- <!-- AURO-GENERATED-CONTENT:END -->
91
- </div>
92
- <auro-accordion alignRight>
93
- <span slot="trigger">See code</span>
94
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
95
- <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
96
-
97
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown aria-label="custom label"&gt;
98
- Lorem ipsum solar
99
- &lt;div slot="trigger"&gt;
100
- Trigger
101
- &lt;/div&gt;
102
- &lt;/auro-dropdown&gt;</code></pre>
103
- <!-- AURO-GENERATED-CONTENT:END -->
104
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
105
- <!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
106
- <auro-dropdown appearance="inverse" aria-label="custom label">
107
- Lorem ipsum solar
108
- <div slot="trigger">
109
- Trigger
110
- </div>
111
- </auro-dropdown>
112
- <!-- AURO-GENERATED-CONTENT:END -->
113
- </auro-accordion>
114
-
115
- ### Icon
116
-
117
- <div class="exampleWrapper">
118
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-icon.html) -->
119
- <!-- The below content is automatically added from ./../apiExamples/basic-icon.html -->
120
- <auro-dropdown aria-label="custom label">
121
- Lorem ipsum solar
122
- <div slot="trigger">
123
- <auro-icon
124
- category="interface"
125
- name="arrow-down"></auro-icon>
126
- </div>
127
- </auro-dropdown>
128
- <!-- AURO-GENERATED-CONTENT:END -->
129
- </div>
130
- <auro-accordion alignRight>
131
- <span slot="trigger">See code</span>
132
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-icon.html) -->
133
- <!-- The below code snippet is automatically added from ./../apiExamples/basic-icon.html -->
134
-
135
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown aria-label="custom label"&gt;
136
- Lorem ipsum solar
137
- &lt;div slot="trigger"&gt;
138
- &lt;auro-icon
139
- category="interface"
140
- name="arrow-down"&gt;&lt;/auro-icon&gt;
141
- &lt;/div&gt;
142
- &lt;/auro-dropdown&gt;</code></pre>
143
- <!-- AURO-GENERATED-CONTENT:END -->
144
- </auro-accordion>
145
-
146
- ### Button
147
-
148
- <div class="exampleWrapper">
149
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-button.html) -->
150
- <!-- The below content is automatically added from ./../apiExamples/basic-button.html -->
151
- <auro-dropdown aria-label="custom label">
152
- Lorem ipsum solar
153
- <div slot="trigger">
154
- <auro-button slot="trigger">
155
- Dropdown
156
- </auro-button>
157
- </div>
158
- </auro-dropdown>
159
- <!-- AURO-GENERATED-CONTENT:END -->
160
- </div>
161
- <auro-accordion alignRight>
162
- <span slot="trigger">See code</span>
163
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-button.html) -->
164
- <!-- The below code snippet is automatically added from ./../apiExamples/basic-button.html -->
165
-
166
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown aria-label="custom label"&gt;
167
- Lorem ipsum solar
168
- &lt;div slot="trigger"&gt;
169
- &lt;auro-button slot="trigger"&gt;
170
- Dropdown
171
- &lt;/auro-button&gt;
172
- &lt;/div&gt;
173
- &lt;/auro-dropdown&gt;</code></pre>
174
- <!-- AURO-GENERATED-CONTENT:END -->
175
- </auro-accordion>
176
-
177
- ## Property & Attribute Examples
178
-
179
- ### Appearance on Dark Backgrounds
180
-
181
- Use the `appearance="inverse"` attribute to ensure proper styling when the dropdown is used on dark backgrounds.
182
-
183
- <div class="exampleWrapper--ondark">
184
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
185
- <!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
186
- <auro-dropdown appearance="inverse" aria-label="custom label">
187
- Lorem ipsum solar
188
- <div slot="trigger">
189
- Trigger
190
- </div>
191
- </auro-dropdown>
192
- <!-- AURO-GENERATED-CONTENT:END -->
193
- </div>
194
- <auro-accordion alignRight>
195
- <span slot="trigger">See code</span>
196
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
197
- <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
198
-
199
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown appearance="inverse" aria-label="custom label"&gt;
200
- Lorem ipsum solar
201
- &lt;div slot="trigger"&gt;
202
- Trigger
203
- &lt;/div&gt;
204
- &lt;/auro-dropdown&gt;</code></pre>
205
- <!-- AURO-GENERATED-CONTENT:END -->
206
- </auro-accordion>
207
-
208
- ### Chevron
209
-
210
- Use the `chevron` attribute to add a chevron icon to the dropdown trigger.
211
-
212
- <div class="exampleWrapper">
213
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevron.html) -->
214
- <!-- The below content is automatically added from ./../apiExamples/chevron.html -->
215
- <auro-dropdown aria-label="custom label" chevron>
216
- Lorem ipsum solar
217
- <div slot="trigger">
218
- Trigger
219
- </div>
220
- </auro-dropdown>
221
- <!-- AURO-GENERATED-CONTENT:END -->
222
- </div>
223
- <auro-accordion alignRight>
224
- <span slot="trigger">See code</span>
225
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevron.html) -->
226
- <!-- The below code snippet is automatically added from ./../apiExamples/chevron.html -->
227
-
228
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown aria-label="custom label" chevron&gt;
229
- Lorem ipsum solar
230
- &lt;div slot="trigger"&gt;
231
- Trigger
232
- &lt;/div&gt;
233
- &lt;/auro-dropdown&gt;</code></pre>
234
- <!-- AURO-GENERATED-CONTENT:END -->
235
- </auro-accordion>
236
-
237
- ### Disabled
238
-
239
- Use the `disabled` attribute to disable interaction with the dropdown.
240
-
241
- <div class="exampleWrapper">
242
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
243
- <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
244
- <auro-dropdown
245
- aria-label="custom label"
246
- disabled
247
- chevron
248
- layout="classic" shape="classic" size="lg">
249
- Lorem ipsum solar
250
- <div slot="trigger">
251
- Trigger
252
- </div>
253
- <span slot="helpText">
254
- Help text
255
- </span>
256
- <span slot="label">
257
- Name
258
- </span>
259
- </auro-dropdown>
260
- <!-- AURO-GENERATED-CONTENT:END -->
261
- </div>
262
- <div class="exampleWrapper--ondark" aria-hidden>
263
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
264
- <!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
265
- <auro-dropdown
266
- aria-label="custom label"
267
- disabled
268
- appearance="inverse"
269
- chevron
270
- layout="classic" shape="classic" size="lg">
271
- Lorem ipsum solar
272
- <div slot="trigger">
273
- Trigger
274
- </div>
275
- <span slot="helpText">
276
- Help text
277
- </span>
278
- <span slot="label">
279
- Name
280
- </span>
281
- </auro-dropdown>
282
- <!-- AURO-GENERATED-CONTENT:END -->
283
- </div>
284
- <auro-accordion alignRight>
285
- <span slot="trigger">See code</span>
286
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
287
- <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
288
-
289
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown
290
- aria-label="custom label"
291
- disabled
292
- chevron
293
- layout="classic" shape="classic" size="lg"&gt;
294
- Lorem ipsum solar
295
- &lt;div slot="trigger"&gt;
296
- Trigger
297
- &lt;/div&gt;
298
- &lt;span slot="helpText"&gt;
299
- Help text
300
- &lt;/span&gt;
301
- &lt;span slot="label"&gt;
302
- Name
303
- &lt;/span&gt;
304
- &lt;/auro-dropdown&gt;</code></pre>
305
- <!-- AURO-GENERATED-CONTENT:END -->
306
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-disabled.html) -->
307
- <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
308
-
309
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown
310
- aria-label="custom label"
311
- disabled
312
- appearance="inverse"
313
- chevron
314
- layout="classic" shape="classic" size="lg"&gt;
315
- Lorem ipsum solar
316
- &lt;div slot="trigger"&gt;
317
- Trigger
318
- &lt;/div&gt;
319
- &lt;span slot="helpText"&gt;
320
- Help text
321
- &lt;/span&gt;
322
- &lt;span slot="label"&gt;
323
- Name
324
- &lt;/span&gt;
325
- &lt;/auro-dropdown&gt;</code></pre>
326
- <!-- AURO-GENERATED-CONTENT:END -->
327
- </auro-accordion>
328
-
329
- ### Error
330
-
331
- Use the `error` attribute to set persistent error state styling on the dropdown.
332
-
333
- <div class="exampleWrapper">
334
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
335
- <!-- The below content is automatically added from ./../apiExamples/error.html -->
336
- <auro-dropdown id="error" layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
337
- <div style="padding: var(--ds-size-150);">
338
- Lorem ipsum solar
339
- <br />
340
- <auro-button id="errorButton">
341
- Dismiss Dropdown
342
- </auro-button>
343
- </div>
344
- <span slot="helpText">
345
- Help text
346
- </span>
347
- <span slot="label">
348
- Element label (default text will be read by screen reader)
349
- </span>
350
- <div slot="trigger">
351
- Trigger
352
- </div>
353
- </auro-dropdown>
354
- <!-- AURO-GENERATED-CONTENT:END -->
355
- </div>
356
- <div class="exampleWrapper--ondark" aria-hidden>
357
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
358
- <!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
359
- <auro-dropdown id="inverseError" appearance="inverse" layout="classic" shape="classic" size="lg" error>
360
- <div style="padding: var(--ds-size-150);">
361
- Lorem ipsum solar
362
- <br />
363
- <auro-button id="inverseErrorButton">
364
- Dismiss Dropdown
365
- </auro-button>
366
- </div>
367
- <span slot="helpText">
368
- Help text
369
- </span>
370
- <span slot="label">
371
- Element label (default text will be read by screen reader)
372
- </span>
373
- <div slot="trigger">
374
- Trigger
375
- </div>
376
- </auro-dropdown>
377
- <!-- AURO-GENERATED-CONTENT:END -->
378
- </div>
379
- <auro-accordion alignRight>
380
- <span slot="trigger">See code</span>
381
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
382
- <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
383
-
384
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown id="error" layout="classic" shape="classic" size="lg" error id="errorDropdownExample"&gt;
385
- &lt;div style="padding: var(--ds-size-150);"&gt;
386
- Lorem ipsum solar
387
- &lt;br /&gt;
388
- &lt;auro-button id="errorButton"&gt;
389
- Dismiss Dropdown
390
- &lt;/auro-button&gt;
391
- &lt;/div&gt;
392
- &lt;span slot="helpText"&gt;
393
- Help text
394
- &lt;/span&gt;
395
- &lt;span slot="label"&gt;
396
- Element label (default text will be read by screen reader)
397
- &lt;/span&gt;
398
- &lt;div slot="trigger"&gt;
399
- Trigger
400
- &lt;/div&gt;
401
- &lt;/auro-dropdown&gt;</code></pre>
402
- <!-- AURO-GENERATED-CONTENT:END -->
403
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-error.html) -->
404
- <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-error.html -->
405
-
406
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown id="inverseError" appearance="inverse" layout="classic" shape="classic" size="lg" error&gt;
407
- &lt;div style="padding: var(--ds-size-150);"&gt;
408
- Lorem ipsum solar
409
- &lt;br /&gt;
410
- &lt;auro-button id="inverseErrorButton"&gt;
411
- Dismiss Dropdown
412
- &lt;/auro-button&gt;
413
- &lt;/div&gt;
414
- &lt;span slot="helpText"&gt;
415
- Help text
416
- &lt;/span&gt;
417
- &lt;span slot="label"&gt;
418
- Element label (default text will be read by screen reader)
419
- &lt;/span&gt;
420
- &lt;div slot="trigger"&gt;
421
- Trigger
422
- &lt;/div&gt;
423
- &lt;/auro-dropdown&gt;</code></pre>
424
- <!-- AURO-GENERATED-CONTENT:END -->
425
- </auro-accordion>
426
-
427
- ### Fullscreen Bib
428
-
429
- You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
430
-
431
- The default value of `fullscreenBreakpoint` is `sm`.
432
-
433
- Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/developers/design-tokens).
434
-
435
- <div class="exampleWrapper">
436
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen-breakpoint.html) -->
437
- <!-- The below content is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
438
- <auro-dropdown id="fullscreen" fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron>
439
- <div>
440
- <p>
441
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
442
- </p>
443
- <p>
444
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
445
- </p>
446
- <p>
447
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
448
- </p>
449
- </div>
450
- <auro-button id="fullscreenButton">
451
- Dismiss Dropdown
452
- </auro-button>
453
- <div slot="trigger">
454
- Trigger
455
- </div>
456
- </auro-dropdown>
457
- <!-- AURO-GENERATED-CONTENT:END -->
458
- </div>
459
- <auro-accordion alignRight>
460
- <span slot="trigger">See code</span>
461
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fullscreen-breakpoint.html) -->
462
- <!-- The below code snippet is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
463
-
464
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown id="fullscreen" fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron&gt;
465
- &lt;div&gt;
466
- &lt;p&gt;
467
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
468
- &lt;/p&gt;
469
- &lt;p&gt;
470
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
471
- &lt;/p&gt;
472
- &lt;p&gt;
473
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
474
- &lt;/p&gt;
475
- &lt;/div&gt;
476
- &lt;auro-button id="fullscreenButton"&gt;
477
- Dismiss Dropdown
478
- &lt;/auro-button&gt;
479
- &lt;div slot="trigger"&gt;
480
- Trigger
481
- &lt;/div&gt;
482
- &lt;/auro-dropdown&gt;</code></pre>
483
- <!-- AURO-GENERATED-CONTENT:END -->
484
- </auro-accordion>
485
-
486
- ### Layouts
487
-
488
- The `auro-dropdown` element supports multiple layouts to fit different design needs. The available layouts are: `classic`, `emphasized`, and `snowflake`. Each layout offers a unique visual style while maintaining the same core functionality.
489
-
490
- **Important**: The `emphasized` and `snowflake` layouts are designed specifically for dark backgrounds and should be used with the `appearance="inverse"` attribute.
491
-
492
- #### Classic
493
-
494
- <div class="exampleWrapper">
495
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/basic.html) -->
496
- <!-- The below content is automatically added from ./../apiExamples/classic/basic.html -->
497
- <auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
498
- <div style="padding: var(--ds-size-150);">
499
- Lorem ipsum solar
500
- <br />
501
- <auro-button id="classicButton">
502
- Dismiss Dropdown
503
- </auro-button>
504
- </div>
505
- <span slot="helpText">
506
- Help text
507
- </span>
508
- <div slot="trigger">
509
- Trigger
510
- </div>
511
- </auro-dropdown>
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/classic/basic.html) -->
517
- <!-- The below code snippet is automatically added from ./../apiExamples/classic/basic.html -->
518
-
519
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader"&gt;
520
- &lt;div style="padding: var(--ds-size-150);"&gt;
521
- Lorem ipsum solar
522
- &lt;br /&gt;
523
- &lt;auro-button id="classicButton"&gt;
524
- Dismiss Dropdown
525
- &lt;/auro-button&gt;
526
- &lt;/div&gt;
527
- &lt;span slot="helpText"&gt;
528
- Help text
529
- &lt;/span&gt;
530
- &lt;div slot="trigger"&gt;
531
- Trigger
532
- &lt;/div&gt;
533
- &lt;/auro-dropdown&gt;</code></pre>
534
- <!-- AURO-GENERATED-CONTENT:END -->
535
- </auro-accordion>
536
- <div class="exampleWrapper--ondark">
537
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/appearance-inverse.html) -->
538
- <!-- The below content is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
539
- <auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
540
- <div style="padding: var(--ds-size-150);">
541
- Lorem ipsum solar
542
- <br />
543
- <auro-button id="classicInverseButton">
544
- Dismiss Dropdown
545
- </auro-button>
546
- </div>
547
- <span slot="helpText">
548
- Help text
549
- </span>
550
- <div slot="trigger">
551
- Trigger
552
- </div>
553
- </auro-dropdown>
554
- <!-- AURO-GENERATED-CONTENT:END -->
555
- </div>
556
- <auro-accordion alignRight>
557
- <span slot="trigger">See code</span>
558
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/classic/appearance-inverse.html) -->
559
- <!-- The below code snippet is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
560
-
561
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader"&gt;
562
- &lt;div style="padding: var(--ds-size-150);"&gt;
563
- Lorem ipsum solar
564
- &lt;br /&gt;
565
- &lt;auro-button id="classicInverseButton"&gt;
566
- Dismiss Dropdown
567
- &lt;/auro-button&gt;
568
- &lt;/div&gt;
569
- &lt;span slot="helpText"&gt;
570
- Help text
571
- &lt;/span&gt;
572
- &lt;div slot="trigger"&gt;
573
- Trigger
574
- &lt;/div&gt;
575
- &lt;/auro-dropdown&gt;</code></pre>
576
- <!-- AURO-GENERATED-CONTENT:END -->
577
- </auro-accordion>
578
-
579
- #### Emphasized
580
-
581
- <div class="exampleWrapper--ondark">
582
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
583
- <!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
584
- <auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
585
- Lorem ipsum solar
586
- <div slot="trigger">
587
- Trigger
588
- </div>
589
- <span slot="helpText">
590
- Help text - Lorem ipsum solar lorem ipsum solar
591
- </span>
592
- </auro-dropdown>
593
- <auro-dropdown aria-label="custom label" shape="pill-left" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
594
- Lorem ipsum solar
595
- <div slot="trigger">
596
- Trigger
597
- </div>
598
- <span slot="helpText">
599
- Help text - Lorem ipsum solar lorem ipsum solar
600
- </span>
601
- </auro-dropdown>
602
- <auro-dropdown aria-label="custom label" shape="pill-right" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
603
- Lorem ipsum solar
604
- <div slot="trigger">
605
- Trigger
606
- </div>
607
- <span slot="helpText">
608
- Help text - Lorem ipsum solar lorem ipsum solar
609
- </span>
610
- </auro-dropdown>
611
- <!-- AURO-GENERATED-CONTENT:END -->
612
- </div>
613
- <auro-accordion alignRight>
614
- <span slot="trigger">See code</span>
615
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/emphasized/basic.html) -->
616
- <!-- The below code snippet is automatically added from ./../apiExamples/emphasized/basic.html -->
617
-
618
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse"&gt;
619
- Lorem ipsum solar
620
- &lt;div slot="trigger"&gt;
621
- Trigger
622
- &lt;/div&gt;
623
- &lt;span slot="helpText"&gt;
624
- Help text - Lorem ipsum solar lorem ipsum solar
625
- &lt;/span&gt;
626
- &lt;/auro-dropdown&gt;
627
- &lt;auro-dropdown aria-label="custom label" shape="pill-left" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse"&gt;
628
- Lorem ipsum solar
629
- &lt;div slot="trigger"&gt;
630
- Trigger
631
- &lt;/div&gt;
632
- &lt;span slot="helpText"&gt;
633
- Help text - Lorem ipsum solar lorem ipsum solar
634
- &lt;/span&gt;
635
- &lt;/auro-dropdown&gt;
636
- &lt;auro-dropdown aria-label="custom label" shape="pill-right" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse"&gt;
637
- Lorem ipsum solar
638
- &lt;div slot="trigger"&gt;
639
- Trigger
640
- &lt;/div&gt;
641
- &lt;span slot="helpText"&gt;
642
- Help text - Lorem ipsum solar lorem ipsum solar
643
- &lt;/span&gt;
644
- &lt;/auro-dropdown&gt;</code></pre>
645
- <!-- AURO-GENERATED-CONTENT:END -->
646
- </auro-accordion>
647
-
648
- #### Snowflake
649
-
650
- <div class="exampleWrapper--ondark">
651
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
652
- <!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
653
- <auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" appearance="inverse">
654
- Lorem ipsum solar
655
- <div slot="trigger">
656
- Trigger
657
- </div>
658
- <span slot="helpText">
659
- Help text - Lorem ipsum solar lorem ipsum solar
660
- </span>
661
- </auro-dropdown>
662
- <!-- AURO-GENERATED-CONTENT:END -->
663
- </div>
664
- <auro-accordion alignRight>
665
- <span slot="trigger">See code</span>
666
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic.html) -->
667
- <!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic.html -->
668
-
669
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" appearance="inverse"&gt;
670
- Lorem ipsum solar
671
- &lt;div slot="trigger"&gt;
672
- Trigger
673
- &lt;/div&gt;
674
- &lt;span slot="helpText"&gt;
675
- Help text - Lorem ipsum solar lorem ipsum solar
676
- &lt;/span&gt;
677
- &lt;/auro-dropdown&gt;</code></pre>
678
- <!-- AURO-GENERATED-CONTENT:END -->
679
- </auro-accordion>
680
-
681
- ### Customized Bib Position
682
-
683
- The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement`, and `shift` attributes.
684
-
685
- - `placement` specifies the preferred position where the bib should appear relative to the trigger.
686
- - `offset` sets the distance between the trigger and the bib.
687
- - When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
688
- - Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
689
- - `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
690
-
691
- <div class="exampleWrapper">
692
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floater-config.html) -->
693
- <!-- The below content is automatically added from ./../apiExamples/floater-config.html -->
694
- <style>
695
- .floaterConfigDropdown::part(size) {
696
- max-height: 200px;
697
- }
698
- </style>
699
- <div aria-label="custom label">
700
- <auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron matchWidth placement="bottom-end" offset="20" noFlip>
701
- <div>
702
- <p>
703
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
704
- </p>
705
- <p>
706
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
707
- </p>
708
- <p>
709
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
710
- </p>
711
- </div>
712
- <div slot="trigger">
713
- Trigger
714
- </div>
715
- <span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
716
- </auro-dropdown>
717
- </div>
718
- <div aria-label="custom label">
719
- <auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron matchWidth placement="bottom-end" offset="20">
720
- <div>
721
- <p>
722
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
723
- </p>
724
- <p>
725
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
726
- </p>
727
- <p>
728
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
729
- </p>
730
- </div>
731
- <div slot="trigger">
732
- Trigger
733
- </div>
734
- <div slot="helpText">
735
- Trigger for bottom-end bib with 20px offset and flip
736
- </div>
737
- </auro-dropdown>
738
- </div>
739
- <div aria-label="custom label">
740
- <auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron matchWidth noFlip placement="right" offset="20">
741
- <div>
742
- <p>
743
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
744
- </p>
745
- <p>
746
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
747
- </p>
748
- <p>
749
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
750
- </p>
751
- </div>
752
- <div slot="trigger">
753
- Trigger
754
- </div>
755
- <div slot="helpText">
756
- Trigger for right bib with 20px offset and noFlip
757
- </div>
758
- </auro-dropdown>
759
- </div>
760
- <div aria-label="custom label">
761
- <auro-dropdown width="350px" class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron matchWidth noFlip placement="bottom-start" shift offset="20">
762
- <div width="500px">
763
- <p>
764
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
765
- </p>
766
- <p>
767
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
768
- </p>
769
- <p>
770
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
771
- </p>
772
- </div>
773
- <div slot="trigger">
774
- Trigger
775
- </div>
776
- <div slot="helpText">
777
- Trigger for bottom-start bib with 20px offset, shift and noFlip
778
- </div>
779
- </auro-dropdown>
780
- </div>
781
- <!-- AURO-GENERATED-CONTENT:END -->
782
- </div>
783
- <auro-accordion alignRight>
784
- <span slot="trigger">See code</span>
785
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floater-config.html) -->
786
- <!-- The below code snippet is automatically added from ./../apiExamples/floater-config.html -->
787
-
788
- <pre class="language-html"><code class="language-html">&lt;style&gt;
789
- .floaterConfigDropdown::part(size) {
790
- max-height: 200px;
791
- }
792
- &lt;/style&gt;
793
- &lt;div aria-label="custom label"&gt;
794
- &lt;auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron matchWidth placement="bottom-end" offset="20" noFlip&gt;
795
- &lt;div&gt;
796
- &lt;p&gt;
797
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
798
- &lt;/p&gt;
799
- &lt;p&gt;
800
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
801
- &lt;/p&gt;
802
- &lt;p&gt;
803
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
804
- &lt;/p&gt;
805
- &lt;/div&gt;
806
- &lt;div slot="trigger"&gt;
807
- Trigger
808
- &lt;/div&gt;
809
- &lt;span slot="helpText"&gt;Trigger for bottom-end bib with 20px offset and noFlip&lt;/span&gt;
810
- &lt;/auro-dropdown&gt;
811
- &lt;/div&gt;
812
- &lt;div aria-label="custom label"&gt;
813
- &lt;auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron matchWidth placement="bottom-end" offset="20"&gt;
814
- &lt;div&gt;
815
- &lt;p&gt;
816
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
817
- &lt;/p&gt;
818
- &lt;p&gt;
819
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
820
- &lt;/p&gt;
821
- &lt;p&gt;
822
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
823
- &lt;/p&gt;
824
- &lt;/div&gt;
825
- &lt;div slot="trigger"&gt;
826
- Trigger
827
- &lt;/div&gt;
828
- &lt;div slot="helpText"&gt;
829
- Trigger for bottom-end bib with 20px offset and flip
830
- &lt;/div&gt;
831
- &lt;/auro-dropdown&gt;
832
- &lt;/div&gt;
833
- &lt;div aria-label="custom label"&gt;
834
- &lt;auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron matchWidth noFlip placement="right" offset="20"&gt;
835
- &lt;div&gt;
836
- &lt;p&gt;
837
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
838
- &lt;/p&gt;
839
- &lt;p&gt;
840
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
841
- &lt;/p&gt;
842
- &lt;p&gt;
843
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
844
- &lt;/p&gt;
845
- &lt;/div&gt;
846
- &lt;div slot="trigger"&gt;
847
- Trigger
848
- &lt;/div&gt;
849
- &lt;div slot="helpText"&gt;
850
- Trigger for right bib with 20px offset and noFlip
851
- &lt;/div&gt;
852
- &lt;/auro-dropdown&gt;
853
- &lt;/div&gt;
854
- &lt;div aria-label="custom label"&gt;
855
- &lt;auro-dropdown width="350px" class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron matchWidth noFlip placement="bottom-start" shift offset="20"&gt;
856
- &lt;div width="500px"&gt;
857
- &lt;p&gt;
858
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
859
- &lt;/p&gt;
860
- &lt;p&gt;
861
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
862
- &lt;/p&gt;
863
- &lt;p&gt;
864
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
865
- &lt;/p&gt;
866
- &lt;/div&gt;
867
- &lt;div slot="trigger"&gt;
868
- Trigger
869
- &lt;/div&gt;
870
- &lt;div slot="helpText"&gt;
871
- Trigger for bottom-start bib with 20px offset, shift and noFlip
872
- &lt;/div&gt;
873
- &lt;/auro-dropdown&gt;
874
- &lt;/div&gt;</code></pre>
875
- <!-- AURO-GENERATED-CONTENT:END -->
876
- </auro-accordion>
877
-
878
- ### Match Width
879
-
880
- When the `matchWidth` attribute is applied, the width of the dropdown bib will match the width of the trigger element.
881
-
882
- <div class="exampleWrapper">
883
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/match-width.html) -->
884
- <!-- The below content is automatically added from ./../apiExamples/match-width.html -->
885
- <auro-dropdown id="matchWidth" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader">
886
- <div style="padding: var(--ds-size-150);">
887
- Lorem ipsum solar
888
- <br />
889
- <auro-button id="matchWidthButton">
890
- Dismiss Dropdown
891
- </auro-button>
892
- </div>
893
- <span slot="helpText">
894
- Help text
895
- </span>
896
- <div slot="trigger">
897
- Trigger
898
- </div>
899
- </auro-dropdown>
900
- <!-- AURO-GENERATED-CONTENT:END -->
901
- </div>
902
- <auro-accordion alignRight>
903
- <span slot="trigger">See code</span>
904
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/match-width.html) -->
905
- <!-- The below code snippet is automatically added from ./../apiExamples/match-width.html -->
906
-
907
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown id="matchWidth" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader"&gt;
908
- &lt;div style="padding: var(--ds-size-150);"&gt;
909
- Lorem ipsum solar
910
- &lt;br /&gt;
911
- &lt;auro-button id="matchWidthButton"&gt;
912
- Dismiss Dropdown
913
- &lt;/auro-button&gt;
914
- &lt;/div&gt;
915
- &lt;span slot="helpText"&gt;
916
- Help text
917
- &lt;/span&gt;
918
- &lt;div slot="trigger"&gt;
919
- Trigger
920
- &lt;/div&gt;
921
- &lt;/auro-dropdown&gt;</code></pre>
922
- <!-- AURO-GENERATED-CONTENT:END -->
923
- </auro-accordion>
924
-
925
- ### No Toggle
926
-
927
- In cases where it is desired behavior for `auro-dropdown` to only show, not toggle, the bib content when activating the trigger the `noToggle` attribute must be applied.
928
-
929
- <div class="exampleWrapper">
930
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-toggle.html) -->
931
- <!-- The below content is automatically added from ./../apiExamples/no-toggle.html -->
932
- <auro-dropdown aria-label="custom label" noToggle>
933
- Lorem ipsum solar
934
- <div slot="trigger">
935
- Trigger
936
- </div>
937
- </auro-dropdown>
938
- <!-- AURO-GENERATED-CONTENT:END -->
939
- </div>
940
- <auro-accordion alignRight>
941
- <span slot="trigger">See code</span>
942
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-toggle.html) -->
943
- <!-- The below code snippet is automatically added from ./../apiExamples/no-toggle.html -->
944
-
945
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown aria-label="custom label" noToggle&gt;
946
- Lorem ipsum solar
947
- &lt;div slot="trigger"&gt;
948
- Trigger
949
- &lt;/div&gt;
950
- &lt;/auro-dropdown&gt;</code></pre>
951
- <!-- AURO-GENERATED-CONTENT:END -->
952
- </auro-accordion>
953
-
954
- ## Method Examples
955
-
956
- ### Hide
957
-
958
- The `hide()` method can be called from within the default slot content. This is useful for cases such as `auro-select` when the dropdown should be collapsed after making a selection.
959
-
960
- The `hide()` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').hide()`.
961
-
962
- This example demonstrations collapsing the dropdown by clicking a button within the dropdown bib content.
963
-
964
- <div class="exampleWrapper">
965
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmatically-hide.html) -->
966
- <!-- The below content is automatically added from ./../apiExamples/programmatically-hide.html -->
967
- <auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
968
- <p>
969
- Lorem ipsum solar
970
- </p>
971
- <div style="padding: var(--ds-size-150);">
972
- <auro-button id="hideExampleBtn">
973
- Hide Dropdown
974
- </auro-button>
975
- </div>
976
- <span slot="trigger">
977
- Trigger
978
- </span>
979
- </auro-dropdown>
980
- <!-- AURO-GENERATED-CONTENT:END -->
981
- </div>
982
- <auro-accordion alignRight>
983
- <span slot="trigger">See code</span>
984
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-hide.html) -->
985
- <!-- The below code snippet is automatically added from ./../apiExamples/programmatically-hide.html -->
986
-
987
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg"&gt;
988
- &lt;p&gt;
989
- Lorem ipsum solar
990
- &lt;/p&gt;
991
- &lt;div style="padding: var(--ds-size-150);"&gt;
992
- &lt;auro-button id="hideExampleBtn"&gt;
993
- Hide Dropdown
994
- &lt;/auro-button&gt;
995
- &lt;/div&gt;
996
- &lt;span slot="trigger"&gt;
997
- Trigger
998
- &lt;/span&gt;
999
- &lt;/auro-dropdown&gt;</code></pre>
1000
- <!-- AURO-GENERATED-CONTENT:END -->
1001
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-hide.js) -->
1002
- <!-- The below code snippet is automatically added from ./../apiExamples/programmatically-hide.js -->
1003
-
1004
- <pre class="language-js"><code class="language-js">export function hideExample() {
1005
- const btn = document.querySelector('#hideExampleBtn');
1006
- const dropdown = document.querySelector('#hideExample');
1007
-
1008
- btn?.addEventListener('click', () =&gt; {
1009
- dropdown?.hide();
1010
- });
1011
- }</code></pre>
1012
- <!-- AURO-GENERATED-CONTENT:END -->
1013
- </auro-accordion>
1014
-
1015
- ### Show
1016
-
1017
- The `show()` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').show()`. This example will execute the `show()` method on a `keydown` event with focus in the input element.
1018
-
1019
- <div class="exampleWrapper">
1020
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmatically-show.html) -->
1021
- <!-- The below content is automatically added from ./../apiExamples/programmatically-show.html -->
1022
- <auro-input id="showExampleTriggerInput" required>
1023
- <span slot="label">Enter a value to show the dropdown</span>
1024
- </auro-input>
1025
- <br />
1026
- <auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
1027
- <p>
1028
- Lorem ipsum solar
1029
- </p>
1030
- <span slot="trigger">Trigger Label</span>
1031
- </auro-dropdown>
1032
- <!-- AURO-GENERATED-CONTENT:END -->
1033
- </div>
1034
- <auro-accordion alignRight>
1035
- <span slot="trigger">See code</span>
1036
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-show.html) -->
1037
- <!-- The below code snippet is automatically added from ./../apiExamples/programmatically-show.html -->
1038
-
1039
- <pre class="language-html"><code class="language-html">&lt;auro-input id="showExampleTriggerInput" required&gt;
1040
- &lt;span slot="label"&gt;Enter a value to show the dropdown&lt;/span&gt;
1041
- &lt;/auro-input&gt;
1042
- &lt;br /&gt;
1043
- &lt;auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg"&gt;
1044
- &lt;p&gt;
1045
- Lorem ipsum solar
1046
- &lt;/p&gt;
1047
- &lt;span slot="trigger"&gt;Trigger Label&lt;/span&gt;
1048
- &lt;/auro-dropdown&gt;</code></pre>
1049
- <!-- AURO-GENERATED-CONTENT:END -->
1050
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-show.js) -->
1051
- <!-- The below code snippet is automatically added from ./../apiExamples/programmatically-show.js -->
1052
-
1053
- <pre class="language-js"><code class="language-js">export function showExample() {
1054
- const triggerInput = document.querySelector('#showExampleTriggerInput');
1055
- const dropdownElem = document.querySelector('#showMethodExample');
1056
-
1057
- triggerInput?.addEventListener('keydown', () =&gt; {
1058
- dropdownElem?.show();
1059
- });
1060
- }</code></pre>
1061
- <!-- AURO-GENERATED-CONTENT:END -->
1062
- </auro-accordion>
1063
-
1064
- ## Slot Examples
1065
-
1066
- ### Help Text
1067
-
1068
- Content defined in the `helpText` slot will be rendered left aligned below the trigger. This slot requires the `auro-helptext` component be used as slot content for the helptext to render with the same styles as other form elements.
1069
-
1070
- <div class="exampleWrapper">
1071
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/help-text.html) -->
1072
- <!-- The below content is automatically added from ./../apiExamples/help-text.html -->
1073
- <auro-dropdown
1074
- aria-label="custom label"
1075
- inset
1076
- bordered
1077
- rounded>
1078
- Lorem ipsum solar
1079
- <span slot="helpText">
1080
- Helper text
1081
- </span>
1082
- <div slot="trigger">
1083
- Trigger
1084
- </div>
1085
- </auro-dropdown>
1086
- <!-- AURO-GENERATED-CONTENT:END -->
1087
- </div>
1088
- <auro-accordion alignRight>
1089
- <span slot="trigger">See code</span>
1090
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/help-text.html) -->
1091
- <!-- The below code snippet is automatically added from ./../apiExamples/help-text.html -->
1092
-
1093
- <pre class="language-html"><code class="language-html">&lt;auro-dropdown
1094
- aria-label="custom label"
1095
- inset
1096
- bordered
1097
- rounded&gt;
1098
- Lorem ipsum solar
1099
- &lt;span slot="helpText"&gt;
1100
- Helper text
1101
- &lt;/span&gt;
1102
- &lt;div slot="trigger"&gt;
1103
- Trigger
1104
- &lt;/div&gt;
1105
- &lt;/auro-dropdown&gt;</code></pre>
1106
- <!-- AURO-GENERATED-CONTENT:END -->
1107
- </auro-accordion>
1108
-
1109
- ### Trigger
1110
-
1111
- Content defined in the `trigger` slot will be rendered in the clickable trigger of the dropdown that is used to display the bib. Focus state visual effects will be disabled on the trigger when it contains a focusable element other than `<auro-input>`.
1112
-
1113
- This slot may contain any static content (e.g. plain text) and/or no more than one of the following elements:
1114
- - `<a>`
1115
- - `<auro-hyperlink>`
1116
- - `<button>`
1117
- - `<auro-button>`
1118
- - `<input>`
1119
- - `<auro-input>`
1120
- - `<svg>`
1121
- - `<auro-icon>`
1122
-
1123
- ## Common Usage Patterns & Functional Examples
1124
-
1125
- ### Width and Sizing Behavior
1126
-
1127
- - **Width:** The `auro-dropdown` element will automatically consume the full width of its parent container. Wrap the `auro-dropdown` in a container element with a defined width to control the overall width of the dropdown.
1128
-
1129
- - **Scroll Behavior:** When the content exceeds the specified size, the browser will provide a scroll for the overflow.
1130
-
1131
- <div class="exampleWrapper">
1132
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/custom-dimensions.html) -->
1133
- <!-- The below content is automatically added from ./../apiExamples/custom-dimensions.html -->
1134
- <div style="width: 100px;" aria-label="custom label">
1135
- <auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
1136
- <div style="max-height: 200px;">
1137
- <p>
1138
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
1139
- </p>
1140
- <p>
1141
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
1142
- </p>
1143
- <p>
1144
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
1145
- </p>
1146
- </div>
1147
- <div slot="trigger">
1148
- Trigger
1149
- </div>
1150
- </auro-dropdown>
1151
- </div>
1152
- <!-- AURO-GENERATED-CONTENT:END -->
1153
- </div>
1154
- <auro-accordion alignRight>
1155
- <span slot="trigger">See code</span>
1156
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom-dimensions.html) -->
1157
- <!-- The below code snippet is automatically added from ./../apiExamples/custom-dimensions.html -->
1158
-
1159
- <pre class="language-html"><code class="language-html">&lt;div style="width: 100px;" aria-label="custom label"&gt;
1160
- &lt;auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron&gt;
1161
- &lt;div style="max-height: 200px;"&gt;
1162
- &lt;p&gt;
1163
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
1164
- &lt;/p&gt;
1165
- &lt;p&gt;
1166
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
1167
- &lt;/p&gt;
1168
- &lt;p&gt;
1169
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
1170
- &lt;/p&gt;
1171
- &lt;/div&gt;
1172
- &lt;div slot="trigger"&gt;
1173
- Trigger
1174
- &lt;/div&gt;
1175
- &lt;/auro-dropdown&gt;
1176
- &lt;/div&gt;</code></pre>
1177
- <!-- AURO-GENERATED-CONTENT:END -->
1178
- </auro-accordion>
1179
-
1180
- ### Dropdown in Dialog
1181
-
1182
- The element used within an `auro-dialog`.
1183
-
1184
- <div class="exampleWrapper">
1185
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-dialog.html) -->
1186
- <!-- The below content is automatically added from ./../apiExamples/in-dialog.html -->
1187
- <div>
1188
- <auro-button id="dropdown-dialog-opener">Dropdown in Dialog</auro-button>
1189
- <auro-dialog id="dropdown-dialog">
1190
- <span slot="header">Dropdown in Dialog</span>
1191
- <div slot="content">
1192
- <auro-dropdown id="in-dialog-dropdown" layout="classic" shape="classic" size="lg">
1193
- <div style="padding: var(--ds-size-150);">
1194
- Lorem ipsum solar
1195
- <br />
1196
- <auro-button id="in-dialog-dismiss-btn">
1197
- Dismiss Dropdown
1198
- </auro-button>
1199
- </div>
1200
- <span slot="helpText">
1201
- Help text
1202
- </span>
1203
- <span slot="label">
1204
- Element label (default text will be read by screen reader)
1205
- </span>
1206
- <div slot="trigger">
1207
- Dropdown Trigger in Dialog
1208
- </div>
1209
- </auro-dropdown>
1210
- </div>
1211
- </auro-dialog>
1212
- </div>
1213
- <!-- AURO-GENERATED-CONTENT:END -->
1214
- </div>
1215
- <auro-accordion alignRight>
1216
- <span slot="trigger">See code</span>
1217
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.html) -->
1218
- <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.html -->
1219
-
1220
- <pre class="language-html"><code class="language-html">&lt;div&gt;
1221
- &lt;auro-button id="dropdown-dialog-opener"&gt;Dropdown in Dialog&lt;/auro-button&gt;
1222
- &lt;auro-dialog id="dropdown-dialog"&gt;
1223
- &lt;span slot="header"&gt;Dropdown in Dialog&lt;/span&gt;
1224
- &lt;div slot="content"&gt;
1225
- &lt;auro-dropdown id="in-dialog-dropdown" layout="classic" shape="classic" size="lg"&gt;
1226
- &lt;div style="padding: var(--ds-size-150);"&gt;
1227
- Lorem ipsum solar
1228
- &lt;br /&gt;
1229
- &lt;auro-button id="in-dialog-dismiss-btn"&gt;
1230
- Dismiss Dropdown
1231
- &lt;/auro-button&gt;
1232
- &lt;/div&gt;
1233
- &lt;span slot="helpText"&gt;
1234
- Help text
1235
- &lt;/span&gt;
1236
- &lt;span slot="label"&gt;
1237
- Element label (default text will be read by screen reader)
1238
- &lt;/span&gt;
1239
- &lt;div slot="trigger"&gt;
1240
- Dropdown Trigger in Dialog
1241
- &lt;/div&gt;
1242
- &lt;/auro-dropdown&gt;
1243
- &lt;/div&gt;
1244
- &lt;/auro-dialog&gt;
1245
- &lt;/div&gt;</code></pre>
1246
- <!-- AURO-GENERATED-CONTENT:END -->
1247
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.js) -->
1248
- <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.js -->
1249
-
1250
- <pre class="language-js"><code class="language-js">export function inDialogExample() {
1251
- const openBtn = document.querySelector("#dropdown-dialog-opener");
1252
- const closeBtn = document.querySelector("#in-dialog-dismiss-btn");
1253
- const dropdown = document.querySelector("#in-dialog-dropdown");
1254
-
1255
- openBtn?.addEventListener("click", () =&gt; {
1256
- const dialog = document.querySelector("#dropdown-dialog");
1257
- dialog.open = true;
1258
- });
1259
-
1260
- closeBtn?.addEventListener("click", () =&gt; {
1261
- dropdown?.hide();
1262
- });
1263
- };</code></pre>
1264
- <!-- AURO-GENERATED-CONTENT:END -->
1265
- </auro-accordion>
1266
-
1267
- ### Dropdown in Drawer
1268
-
1269
- The element used within an `auro-drawer`.
1270
-
1271
- <div class="exampleWrapper">
1272
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-drawer.html) -->
1273
- <!-- The below content is automatically added from ./../apiExamples/in-drawer.html -->
1274
- <div>
1275
- <auro-button id="dropdown-drawer-opener">Dropdown in Drawer</auro-button>
1276
- <auro-drawer id="dropdown-drawer">
1277
- <span slot="header">Dropdown in Drawer</span>
1278
- <div slot="content">
1279
- <auro-dropdown id="in-drawer-dropdown" layout="classic" shape="classic" size="lg">
1280
- <div style="padding: var(--ds-size-150);">
1281
- Lorem ipsum dolor
1282
- <br />
1283
- <auro-button id="in-drawer-dismiss-btn">
1284
- Dismiss Dropdown
1285
- </auro-button>
1286
- </div>
1287
- <span slot="helpText">
1288
- Help text
1289
- </span>
1290
- <span slot="label">
1291
- Element label (default text will be read by screen reader)
1292
- </span>
1293
- <div slot="trigger">
1294
- Dropdown Trigger in Drawer
1295
- </div>
1296
- </auro-dropdown>
1297
- </div>
1298
- </auro-drawer>
1299
- </div>
1300
- <!-- AURO-GENERATED-CONTENT:END -->
1301
- </div>
1302
- <auro-accordion alignRight>
1303
- <span slot="trigger">See code</span>
1304
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.html) -->
1305
- <!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.html -->
1306
-
1307
- <pre class="language-html"><code class="language-html">&lt;div&gt;
1308
- &lt;auro-button id="dropdown-drawer-opener"&gt;Dropdown in Drawer&lt;/auro-button&gt;
1309
- &lt;auro-drawer id="dropdown-drawer"&gt;
1310
- &lt;span slot="header"&gt;Dropdown in Drawer&lt;/span&gt;
1311
- &lt;div slot="content"&gt;
1312
- &lt;auro-dropdown id="in-drawer-dropdown" layout="classic" shape="classic" size="lg"&gt;
1313
- &lt;div style="padding: var(--ds-size-150);"&gt;
1314
- Lorem ipsum dolor
1315
- &lt;br /&gt;
1316
- &lt;auro-button id="in-drawer-dismiss-btn"&gt;
1317
- Dismiss Dropdown
1318
- &lt;/auro-button&gt;
1319
- &lt;/div&gt;
1320
- &lt;span slot="helpText"&gt;
1321
- Help text
1322
- &lt;/span&gt;
1323
- &lt;span slot="label"&gt;
1324
- Element label (default text will be read by screen reader)
1325
- &lt;/span&gt;
1326
- &lt;div slot="trigger"&gt;
1327
- Dropdown Trigger in Drawer
1328
- &lt;/div&gt;
1329
- &lt;/auro-dropdown&gt;
1330
- &lt;/div&gt;
1331
- &lt;/auro-drawer&gt;
1332
- &lt;/div&gt;</code></pre>
1333
- <!-- AURO-GENERATED-CONTENT:END -->
1334
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.js) -->
1335
- <!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.js -->
1336
-
1337
- <pre class="language-js"><code class="language-js">export function inDrawerExample() {
1338
- const openBtn = document.querySelector("#dropdown-drawer-opener");
1339
- const closeBtn = document.querySelector("#in-drawer-dismiss-btn");
1340
- const dropdown = document.querySelector("#in-drawer-dropdown");
1341
-
1342
- openBtn?.addEventListener("click", () =&gt; {
1343
- const drawer = document.querySelector("#dropdown-drawer");
1344
- if (drawer.hasAttribute('open')) {
1345
- drawer.removeAttribute('open');
1346
- } else {
1347
- drawer.setAttribute('open', true);
1348
- }
1349
- });
1350
-
1351
- closeBtn?.addEventListener("click", () =&gt; {
1352
- dropdown?.hide();
1353
- });
1354
- };</code></pre>
1355
- <!-- AURO-GENERATED-CONTENT:END -->
1356
- </auro-accordion>
1357
-
1358
- ## Restyle Component with CSS Variables
1359
-
1360
- The component may be restyled by changing the values of the following token(s).
1361
-
1362
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
1363
- <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
1364
-
1365
- <pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
1366
- @use "@aurodesignsystem/design-tokens/dist/legacy/auro-classic/SCSSVariables" as vac;
1367
-
1368
- :host(:not([ondark])),
1369
- :host(:not([appearance="inverse"])) {
1370
- --ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
1371
- --ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1372
- --ds-auro-dropdown-trigger-hover-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1373
- --ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1374
- --ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
1375
- --ds-auro-dropdown-trigger-outline-color: transparent;
1376
- --ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1377
- --ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{vac.$ds-elevation-200});
1378
- --ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1379
- --ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1380
- --ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1381
- }
1382
-
1383
- :host([ondark]),
1384
- :host([appearance="inverse"]) {
1385
- --ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #{v.$ds-basic-color-texticon-inverse-muted});
1386
- --ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1387
- --ds-auro-dropdown-trigger-hover-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1388
- --ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1389
- --ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #{v.$ds-basic-color-border-inverse});
1390
- --ds-auro-dropdown-trigger-outline-color: transparent;
1391
- --ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
1392
- --ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{vac.$ds-elevation-200});
1393
- --ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1394
- --ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1395
- --ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
1396
- }</code></pre>
68
+ |------------|--------------------------------------------------|
69
+ | `chevron` | The collapsed/expanded state icon container. |
70
+ | `helpText` | The helpText content container. |
71
+ | `size` | The size of the dropdown bib. (height, width, maxHeight, maxWidth only) |
72
+ | `trigger` | The trigger content container. |
1397
73
  <!-- AURO-GENERATED-CONTENT:END -->