@aurodesignsystem-dev/auro-formkit 0.0.0-pr1001.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +2 -0
  4. package/README.md +314 -0
  5. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +50 -0
  6. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  7. package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
  8. package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
  9. package/components/bibtemplate/dist/index.d.ts +2 -0
  10. package/components/bibtemplate/dist/index.js +1940 -0
  11. package/components/bibtemplate/dist/registered.js +1940 -0
  12. package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
  13. package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
  14. package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
  15. package/components/checkbox/README.md +142 -0
  16. package/components/checkbox/demo/api.html +61 -0
  17. package/components/checkbox/demo/api.js +17 -0
  18. package/components/checkbox/demo/api.md +436 -0
  19. package/components/checkbox/demo/api.min.js +1870 -0
  20. package/components/checkbox/demo/index.html +57 -0
  21. package/components/checkbox/demo/index.js +8 -0
  22. package/components/checkbox/demo/index.md +327 -0
  23. package/components/checkbox/demo/index.min.js +1845 -0
  24. package/components/checkbox/demo/readme.html +57 -0
  25. package/components/checkbox/demo/readme.md +142 -0
  26. package/components/checkbox/dist/auro-checkbox-group.d.ts +166 -0
  27. package/components/checkbox/dist/auro-checkbox.d.ts +136 -0
  28. package/components/checkbox/dist/helptextVersion.d.ts +2 -0
  29. package/components/checkbox/dist/index.d.ts +3 -0
  30. package/components/checkbox/dist/index.js +1794 -0
  31. package/components/checkbox/dist/registered.js +1795 -0
  32. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
  33. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
  34. package/components/checkbox/dist/styles/color-css.d.ts +2 -0
  35. package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
  36. package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
  37. package/components/combobox/README.md +154 -0
  38. package/components/combobox/demo/api.html +63 -0
  39. package/components/combobox/demo/api.js +36 -0
  40. package/components/combobox/demo/api.md +1326 -0
  41. package/components/combobox/demo/api.min.js +18691 -0
  42. package/components/combobox/demo/index.html +63 -0
  43. package/components/combobox/demo/index.js +26 -0
  44. package/components/combobox/demo/index.md +725 -0
  45. package/components/combobox/demo/index.min.js +18545 -0
  46. package/components/combobox/demo/readme.html +57 -0
  47. package/components/combobox/demo/readme.md +154 -0
  48. package/components/combobox/dist/auro-combobox.d.ts +434 -0
  49. package/components/combobox/dist/bibtemplateVersion.d.ts +2 -0
  50. package/components/combobox/dist/dropdownVersion.d.ts +2 -0
  51. package/components/combobox/dist/index.d.ts +2 -0
  52. package/components/combobox/dist/index.js +16999 -0
  53. package/components/combobox/dist/inputVersion.d.ts +2 -0
  54. package/components/combobox/dist/registered.js +17001 -0
  55. package/components/combobox/dist/styles/emphasized/style-css.d.ts +2 -0
  56. package/components/combobox/dist/styles/snowflake/style-css.d.ts +2 -0
  57. package/components/combobox/dist/styles/style-css.d.ts +2 -0
  58. package/components/counter/README.md +146 -0
  59. package/components/counter/demo/api.html +61 -0
  60. package/components/counter/demo/api.js +20 -0
  61. package/components/counter/demo/api.md +730 -0
  62. package/components/counter/demo/api.min.js +10406 -0
  63. package/components/counter/demo/index.html +61 -0
  64. package/components/counter/demo/index.js +21 -0
  65. package/components/counter/demo/index.md +401 -0
  66. package/components/counter/demo/index.min.js +10370 -0
  67. package/components/counter/demo/readme.html +57 -0
  68. package/components/counter/demo/readme.md +146 -0
  69. package/components/counter/dist/auro-counter-button.d.ts +14 -0
  70. package/components/counter/dist/auro-counter-group.d.ts +386 -0
  71. package/components/counter/dist/auro-counter-wrapper.d.ts +22 -0
  72. package/components/counter/dist/auro-counter.d.ts +113 -0
  73. package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
  74. package/components/counter/dist/dropdownVersion.d.ts +2 -0
  75. package/components/counter/dist/helptextVersion.d.ts +2 -0
  76. package/components/counter/dist/iconVersion.d.ts +2 -0
  77. package/components/counter/dist/index.d.ts +3 -0
  78. package/components/counter/dist/index.js +10313 -0
  79. package/components/counter/dist/registered.js +10314 -0
  80. package/components/counter/dist/styles/color-css.d.ts +2 -0
  81. package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
  82. package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
  83. package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
  84. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
  85. package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
  86. package/components/counter/dist/styles/shapeSize-css.d.ts +2 -0
  87. package/components/counter/dist/styles/style-css.d.ts +2 -0
  88. package/components/counter/dist/styles/tokens-css.d.ts +2 -0
  89. package/components/datepicker/README.md +141 -0
  90. package/components/datepicker/demo/api.html +63 -0
  91. package/components/datepicker/demo/api.js +35 -0
  92. package/components/datepicker/demo/api.md +1529 -0
  93. package/components/datepicker/demo/api.min.js +29755 -0
  94. package/components/datepicker/demo/index.html +62 -0
  95. package/components/datepicker/demo/index.js +19 -0
  96. package/components/datepicker/demo/index.md +204 -0
  97. package/components/datepicker/demo/index.min.js +29476 -0
  98. package/components/datepicker/demo/readme.html +57 -0
  99. package/components/datepicker/demo/readme.md +141 -0
  100. package/components/datepicker/dist/auro-calendar-cell.d.ts +163 -0
  101. package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
  102. package/components/datepicker/dist/auro-calendar.d.ts +133 -0
  103. package/components/datepicker/dist/auro-datepicker.d.ts +625 -0
  104. package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
  105. package/components/datepicker/dist/buttonVersion.d.ts +2 -0
  106. package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
  107. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  108. package/components/datepicker/dist/index.d.ts +2 -0
  109. package/components/datepicker/dist/index.js +29406 -0
  110. package/components/datepicker/dist/inputVersion.d.ts +2 -0
  111. package/components/datepicker/dist/popoverVersion.d.ts +2 -0
  112. package/components/datepicker/dist/registered.js +29406 -0
  113. package/components/datepicker/dist/styles/classic/color-css.d.ts +2 -0
  114. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  115. package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
  116. package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
  117. package/components/datepicker/dist/styles/color-css.d.ts +2 -0
  118. package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
  119. package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
  120. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +2 -0
  121. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
  122. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
  123. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
  124. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
  125. package/components/datepicker/dist/styles/style-css.d.ts +2 -0
  126. package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
  127. package/components/datepicker/dist/utilities.d.ts +78 -0
  128. package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
  129. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
  130. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
  131. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
  132. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
  133. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
  134. package/components/dropdown/README.md +144 -0
  135. package/components/dropdown/demo/api.html +63 -0
  136. package/components/dropdown/demo/api.js +21 -0
  137. package/components/dropdown/demo/api.md +1266 -0
  138. package/components/dropdown/demo/api.min.js +4442 -0
  139. package/components/dropdown/demo/index.html +61 -0
  140. package/components/dropdown/demo/index.js +19 -0
  141. package/components/dropdown/demo/index.md +337 -0
  142. package/components/dropdown/demo/index.min.js +4405 -0
  143. package/components/dropdown/demo/readme.html +57 -0
  144. package/components/dropdown/demo/readme.md +144 -0
  145. package/components/dropdown/dist/auro-dropdown.d.ts +425 -0
  146. package/components/dropdown/dist/auro-dropdownBib.d.ts +68 -0
  147. package/components/dropdown/dist/dropdownVersion.d.ts +2 -0
  148. package/components/dropdown/dist/helptextVersion.d.ts +2 -0
  149. package/components/dropdown/dist/iconVersion.d.ts +2 -0
  150. package/components/dropdown/dist/index.d.ts +2 -0
  151. package/components/dropdown/dist/index.js +4350 -0
  152. package/components/dropdown/dist/registered.js +4350 -0
  153. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +2 -0
  154. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +2 -0
  155. package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
  156. package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
  157. package/components/dropdown/dist/styles/color-css.d.ts +2 -0
  158. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  159. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  160. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  161. package/components/dropdown/dist/styles/style-css.d.ts +2 -0
  162. package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
  163. package/components/form/README.md +142 -0
  164. package/components/form/demo/api.html +56 -0
  165. package/components/form/demo/api.js +3 -0
  166. package/components/form/demo/api.md +51 -0
  167. package/components/form/demo/api.min.js +638 -0
  168. package/components/form/demo/autocomplete.html +31 -0
  169. package/components/form/demo/index.html +57 -0
  170. package/components/form/demo/index.js +4 -0
  171. package/components/form/demo/index.md +403 -0
  172. package/components/form/demo/index.min.js +639 -0
  173. package/components/form/demo/readme.html +57 -0
  174. package/components/form/demo/readme.md +142 -0
  175. package/components/form/demo/registerDemoDeps.js +23 -0
  176. package/components/form/demo/working.html +124 -0
  177. package/components/form/dist/auro-form.d.ts +223 -0
  178. package/components/form/dist/index.d.ts +2 -0
  179. package/components/form/dist/index.js +614 -0
  180. package/components/form/dist/registered.d.ts +1 -0
  181. package/components/form/dist/registered.js +614 -0
  182. package/components/form/dist/styles/style-css.d.ts +2 -0
  183. package/components/helptext/dist/auro-helptext.d.ts +59 -0
  184. package/components/helptext/dist/index.d.ts +2 -0
  185. package/components/helptext/dist/index.js +207 -0
  186. package/components/helptext/dist/registered.js +207 -0
  187. package/components/helptext/dist/styles/color-css.d.ts +2 -0
  188. package/components/helptext/dist/styles/style-css.d.ts +2 -0
  189. package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
  190. package/components/input/README.md +139 -0
  191. package/components/input/demo/api.html +48 -0
  192. package/components/input/demo/api.js +29 -0
  193. package/components/input/demo/api.md +1366 -0
  194. package/components/input/demo/api.min.js +8542 -0
  195. package/components/input/demo/index.html +49 -0
  196. package/components/input/demo/index.js +20 -0
  197. package/components/input/demo/index.md +270 -0
  198. package/components/input/demo/index.min.js +8461 -0
  199. package/components/input/demo/readme.html +57 -0
  200. package/components/input/demo/readme.md +139 -0
  201. package/components/input/dist/auro-input.d.ts +167 -0
  202. package/components/input/dist/base-input.d.ts +566 -0
  203. package/components/input/dist/buttonVersion.d.ts +2 -0
  204. package/components/input/dist/helptextVersion.d.ts +2 -0
  205. package/components/input/dist/i18n.d.ts +18 -0
  206. package/components/input/dist/iconVersion.d.ts +2 -0
  207. package/components/input/dist/index.d.ts +2 -0
  208. package/components/input/dist/index.js +8367 -0
  209. package/components/input/dist/registered.js +8367 -0
  210. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  211. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  212. package/components/input/dist/styles/color-css.d.ts +2 -0
  213. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  214. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  215. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  216. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  217. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  218. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  219. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  220. package/components/input/dist/styles/mixins-css.d.ts +2 -0
  221. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  222. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  223. package/components/input/dist/styles/style-css.d.ts +2 -0
  224. package/components/input/dist/styles/tokens-css.d.ts +2 -0
  225. package/components/input/dist/utilities.d.ts +25 -0
  226. package/components/layoutElement/dist/auroElement.d.ts +34 -0
  227. package/components/layoutElement/dist/index.d.ts +2 -0
  228. package/components/layoutElement/dist/index.js +98 -0
  229. package/components/layoutElement/dist/registered.js +98 -0
  230. package/components/menu/README.md +145 -0
  231. package/components/menu/demo/api.html +62 -0
  232. package/components/menu/demo/api.js +27 -0
  233. package/components/menu/demo/api.md +1011 -0
  234. package/components/menu/demo/api.min.js +1762 -0
  235. package/components/menu/demo/index.html +58 -0
  236. package/components/menu/demo/index.js +28 -0
  237. package/components/menu/demo/index.md +61 -0
  238. package/components/menu/demo/index.min.js +1708 -0
  239. package/components/menu/demo/readme.html +57 -0
  240. package/components/menu/demo/readme.md +145 -0
  241. package/components/menu/dist/auro-menu-utils.d.ts +34 -0
  242. package/components/menu/dist/auro-menu.d.ts +246 -0
  243. package/components/menu/dist/auro-menuoption.d.ts +81 -0
  244. package/components/menu/dist/dropdownVersion.d.ts +2 -0
  245. package/components/menu/dist/iconVersion.d.ts +2 -0
  246. package/components/menu/dist/index.d.ts +4 -0
  247. package/components/menu/dist/index.js +1691 -0
  248. package/components/menu/dist/registered.js +1651 -0
  249. package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
  250. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  251. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  252. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  253. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  254. package/components/radio/README.md +137 -0
  255. package/components/radio/demo/api.html +59 -0
  256. package/components/radio/demo/api.js +19 -0
  257. package/components/radio/demo/api.md +602 -0
  258. package/components/radio/demo/api.min.js +1951 -0
  259. package/components/radio/demo/index.html +56 -0
  260. package/components/radio/demo/index.js +8 -0
  261. package/components/radio/demo/index.md +150 -0
  262. package/components/radio/demo/index.min.js +1908 -0
  263. package/components/radio/demo/readme.html +57 -0
  264. package/components/radio/demo/readme.md +137 -0
  265. package/components/radio/dist/auro-radio-group.d.ts +194 -0
  266. package/components/radio/dist/auro-radio.d.ts +147 -0
  267. package/components/radio/dist/helptextVersion.d.ts +2 -0
  268. package/components/radio/dist/index.d.ts +3 -0
  269. package/components/radio/dist/index.js +1857 -0
  270. package/components/radio/dist/registered.js +1858 -0
  271. package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
  272. package/components/radio/dist/styles/color-css.d.ts +2 -0
  273. package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
  274. package/components/radio/dist/styles/style-css.d.ts +2 -0
  275. package/components/radio/dist/styles/tokens-css.d.ts +2 -0
  276. package/components/select/README.md +145 -0
  277. package/components/select/demo/api.html +77 -0
  278. package/components/select/demo/api.js +35 -0
  279. package/components/select/demo/api.md +1413 -0
  280. package/components/select/demo/api.min.js +10502 -0
  281. package/components/select/demo/index.html +73 -0
  282. package/components/select/demo/index.js +9 -0
  283. package/components/select/demo/index.md +1151 -0
  284. package/components/select/demo/index.min.js +10390 -0
  285. package/components/select/demo/readme.html +57 -0
  286. package/components/select/demo/readme.md +145 -0
  287. package/components/select/dist/auro-select.d.ts +512 -0
  288. package/components/select/dist/bibtemplateVersion.d.ts +2 -0
  289. package/components/select/dist/dropdownVersion.d.ts +2 -0
  290. package/components/select/dist/helptextVersion.d.ts +2 -0
  291. package/components/select/dist/index.d.ts +2 -0
  292. package/components/select/dist/index.js +8898 -0
  293. package/components/select/dist/registered.js +8898 -0
  294. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  295. package/components/select/dist/styles/style-css.d.ts +2 -0
  296. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  297. package/package.json +218 -0
@@ -0,0 +1,1266 @@
1
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/api.md) -->
2
+ <!-- The below content is automatically added from ./../docs/api.md -->
3
+
4
+ # auro-dropdown
5
+
6
+ ## Properties
7
+
8
+ | Property | Attribute | Type | Default | Description |
9
+ |-------------------------|-------------------------|-------------|----------------|--------------------------------------------------|
10
+ | `a11yRole` | | | | The value for the role attribute of the trigger element. |
11
+ | [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
12
+ | [chevron](#chevron) | `chevron` | ` Boolean ` | | If declared, the dropdown displays a chevron on the right. |
13
+ | [disableEventShow](#disableEventShow) | `disableEventShow` | ` Boolean ` | "false" | If declared, the dropdown will only show by calling the API .show() public method. |
14
+ | [disableFocusTrap](#disableFocusTrap) | `disableFocusTrap` | `boolean` | | If declared, the focus trap inside of bib will be turned off. |
15
+ | [disabled](#disabled) | `disabled` | ` Boolean ` | | If declared, the dropdown is not interactive. |
16
+ | [error](#error) | `error` | ` Boolean ` | | If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both. |
17
+ | [errorMessage](#errorMessage) | `errorMessage` | `string` | "undefined" | Contains the help text message for the current validity error. |
18
+ | [focusShow](#focusShow) | `focusShow` | ` Boolean ` | | If declared, the bib will display when focus is applied to the trigger. |
19
+ | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | ` String ` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />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. |
20
+ | [hoverToggle](#hoverToggle) | `hoverToggle` | ` Boolean ` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
21
+ | [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
22
+ | [isPopoverVisible](#isPopoverVisible) | `open` | ` Boolean ` | false | If true, the dropdown bib is displayed. |
23
+ | [layout](#layout) | | | "undefined" | |
24
+ | [matchWidth](#matchWidth) | `matchWidth` | ` Boolean ` | false | If declared, the popover and trigger will be set to the same width. |
25
+ | [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
26
+ | [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | ` Boolean ` | false | If declared, the dropdown will not hide when moving focus outside the element. |
27
+ | [noToggle](#noToggle) | `noToggle` | ` Boolean ` | | If declared, the trigger will only show the dropdown bib. |
28
+ | [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
29
+ | [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied. |
30
+ | [onSlotChange](#onSlotChange) | `onSlotChange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
31
+ | [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger. |
32
+ | [shape](#shape) | | | "undefined" | |
33
+ | [simple](#simple) | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
34
+ | [size](#size) | | | "undefined" | |
35
+
36
+ ## Methods
37
+
38
+ | Method | Type | Description |
39
+ |------------------|------------|--------------------------------------------------|
40
+ | [exposeCssParts](#exposeCssParts) | `(): void` | Exposes CSS parts for styling from parent components. |
41
+ | [focus](#focus) | `(): void` | When bib is open, focus on the first element inside of bib.<br />If not, trigger element will get focus. |
42
+ | [hide](#hide) | `(): void` | Public method to hide the dropdown. |
43
+ | [show](#show) | `(): void` | Public method to show the dropdown. |
44
+
45
+ ## Events
46
+
47
+ | Event | Type | Description |
48
+ |-----------------------------|--------------------------------------|--------------------------------------------------|
49
+ | `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | |
50
+ | `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
51
+ | `auroDropdown-triggerClick` | `CustomEvent<any>` | Notifies that the trigger has been clicked. |
52
+
53
+ ## Slots
54
+
55
+ | Name | Description |
56
+ |------------|---------------------------------------|
57
+ | | Default slot for the popover content. |
58
+ | [helpText](#helpText) | Defines the content of the helpText. |
59
+ | [trigger](#trigger) | Defines the content of the trigger. |
60
+
61
+ ## CSS Shadow Parts
62
+
63
+ | Part | Description |
64
+ |------------|--------------------------------------------------|
65
+ | [chevron](#chevron) | The collapsed/expanded state icon container. |
66
+ | [helpText](#helpText) | The helpText content container. |
67
+ | [popover](#popover) | The bib content container. |
68
+ | [size](#size) | The size of the dropdown bib. (height, width, maxHeight, maxWidth only) |
69
+ | [trigger](#trigger) | The trigger content container. |
70
+ <!-- AURO-GENERATED-CONTENT:END -->
71
+
72
+ ## API Examples
73
+
74
+ ### Basic
75
+
76
+ The most basic, simple version of `auro-dropdown`.
77
+
78
+ #### Text content in trigger
79
+
80
+ <div class="exampleWrapper">
81
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
82
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
83
+ <auro-dropdown aria-label="custom label">
84
+ Lorem ipsum solar
85
+ <div slot="trigger">
86
+ Trigger
87
+ </div>
88
+ </auro-dropdown>
89
+ <!-- AURO-GENERATED-CONTENT:END -->
90
+ </div>
91
+ <div class="exampleWrapper--ondark" aria-hidden>
92
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
93
+ <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
94
+ <auro-dropdown onDark aria-label="custom label">
95
+ Lorem ipsum solar
96
+ <div slot="trigger">
97
+ Trigger
98
+ </div>
99
+ </auro-dropdown>
100
+ <!-- AURO-GENERATED-CONTENT:END -->
101
+ </div>
102
+ <auro-accordion alignRight>
103
+ <span slot="trigger">See code</span>
104
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
105
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
106
+
107
+ ```html
108
+ <auro-dropdown aria-label="custom label">
109
+ Lorem ipsum solar
110
+ <div slot="trigger">
111
+ Trigger
112
+ </div>
113
+ </auro-dropdown>
114
+ ```
115
+ <!-- AURO-GENERATED-CONTENT:END -->
116
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
117
+ <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
118
+ <auro-dropdown onDark aria-label="custom label">
119
+ Lorem ipsum solar
120
+ <div slot="trigger">
121
+ Trigger
122
+ </div>
123
+ </auro-dropdown>
124
+ <!-- AURO-GENERATED-CONTENT:END -->
125
+ </auro-accordion>
126
+
127
+ #### Icon content in trigger
128
+
129
+ <div class="exampleWrapper">
130
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicIcon.html) -->
131
+ <!-- The below content is automatically added from ./../apiExamples/basicIcon.html -->
132
+ <auro-dropdown aria-label="custom label">
133
+ Lorem ipsum solar
134
+ <div slot="trigger">
135
+ <auro-icon
136
+ category="interface"
137
+ name="arrow-down"></auro-icon>
138
+ </div>
139
+ </auro-dropdown>
140
+ <!-- AURO-GENERATED-CONTENT:END -->
141
+ </div>
142
+ <auro-accordion alignRight>
143
+ <span slot="trigger">See code</span>
144
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicIcon.html) -->
145
+ <!-- The below code snippet is automatically added from ./../apiExamples/basicIcon.html -->
146
+
147
+ ```html
148
+ <auro-dropdown aria-label="custom label">
149
+ Lorem ipsum solar
150
+ <div slot="trigger">
151
+ <auro-icon
152
+ category="interface"
153
+ name="arrow-down"></auro-icon>
154
+ </div>
155
+ </auro-dropdown>
156
+ ```
157
+ <!-- AURO-GENERATED-CONTENT:END -->
158
+ </auro-accordion>
159
+ <div class="exampleWrapper">
160
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicButton.html) -->
161
+ <!-- The below content is automatically added from ./../apiExamples/basicButton.html -->
162
+ <auro-dropdown aria-label="custom label">
163
+ Lorem ipsum solar
164
+ <div slot="trigger">
165
+ <auro-button slot="trigger">
166
+ Dropdown
167
+ </auro-button>
168
+ </div>
169
+ </auro-dropdown>
170
+ <!-- AURO-GENERATED-CONTENT:END -->
171
+ </div>
172
+ <auro-accordion alignRight>
173
+ <span slot="trigger">See code</span>
174
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicButton.html) -->
175
+ <!-- The below code snippet is automatically added from ./../apiExamples/basicButton.html -->
176
+
177
+ ```html
178
+ <auro-dropdown aria-label="custom label">
179
+ Lorem ipsum solar
180
+ <div slot="trigger">
181
+ <auro-button slot="trigger">
182
+ Dropdown
183
+ </auro-button>
184
+ </div>
185
+ </auro-dropdown>
186
+ ```
187
+ <!-- AURO-GENERATED-CONTENT:END -->
188
+ </auro-accordion>
189
+
190
+ ### Property Examples
191
+
192
+ #### bordered
193
+
194
+ Adds the border style around the dropdown trigger.
195
+
196
+ <div class="exampleWrapper">
197
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/bordered.html) -->
198
+ <!-- The below content is automatically added from ./../apiExamples/bordered.html -->
199
+ <auro-dropdown aria-label="custom label" bordered>
200
+ Lorem ipsum solar
201
+ <div slot="trigger">
202
+ Trigger
203
+ </div>
204
+ </auro-dropdown>
205
+ <!-- AURO-GENERATED-CONTENT:END -->
206
+ </div>
207
+ <div class="exampleWrapper--ondark" aria-hidden>
208
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
209
+ <!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
210
+ <auro-dropdown onDark aria-label="custom label" layout="classic" shape="classic" size="lg">
211
+ Lorem ipsum solar
212
+ <div slot="trigger">
213
+ Trigger
214
+ </div>
215
+ </auro-dropdown>
216
+ <!-- AURO-GENERATED-CONTENT:END -->
217
+ </div>
218
+ <auro-accordion alignRight>
219
+ <span slot="trigger">See code</span>
220
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/bordered.html) -->
221
+ <!-- The below code snippet is automatically added from ./../apiExamples/bordered.html -->
222
+
223
+ ```html
224
+ <auro-dropdown aria-label="custom label" bordered>
225
+ Lorem ipsum solar
226
+ <div slot="trigger">
227
+ Trigger
228
+ </div>
229
+ </auro-dropdown>
230
+ ```
231
+ <!-- AURO-GENERATED-CONTENT:END -->
232
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
233
+ <!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
234
+ <auro-dropdown onDark aria-label="custom label" layout="classic" shape="classic" size="lg">
235
+ Lorem ipsum solar
236
+ <div slot="trigger">
237
+ Trigger
238
+ </div>
239
+ </auro-dropdown>
240
+ <!-- AURO-GENERATED-CONTENT:END -->
241
+ </auro-accordion>
242
+
243
+ #### chevron
244
+
245
+ Adds the bib visibility state chevron to the right side of the trigger content.
246
+
247
+ <div class="exampleWrapper">
248
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevron.html) -->
249
+ <!-- The below content is automatically added from ./../apiExamples/chevron.html -->
250
+ <auro-dropdown aria-label="custom label" chevron>
251
+ Lorem ipsum solar
252
+ <div slot="trigger">
253
+ Trigger
254
+ </div>
255
+ </auro-dropdown>
256
+ <!-- AURO-GENERATED-CONTENT:END -->
257
+ </div>
258
+ <auro-accordion alignRight>
259
+ <span slot="trigger">See code</span>
260
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevron.html) -->
261
+ <!-- The below code snippet is automatically added from ./../apiExamples/chevron.html -->
262
+
263
+ ```html
264
+ <auro-dropdown aria-label="custom label" chevron>
265
+ Lorem ipsum solar
266
+ <div slot="trigger">
267
+ Trigger
268
+ </div>
269
+ </auro-dropdown>
270
+ ```
271
+ <!-- AURO-GENERATED-CONTENT:END -->
272
+ </auro-accordion>
273
+ <div class="exampleWrapper">
274
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevronIcon.html) -->
275
+ <!-- The below content is automatically added from ./../apiExamples/chevronIcon.html -->
276
+ <auro-dropdown aria-label="custom label" chevron>
277
+ Lorem ipsum solar
278
+ <div slot="trigger">
279
+ <auro-icon
280
+ category="interface"
281
+ name="arrow-down"></auro-icon>
282
+ </div>
283
+ </auro-dropdown>
284
+ <!-- AURO-GENERATED-CONTENT:END -->
285
+ </div>
286
+ <auro-accordion alignRight>
287
+ <span slot="trigger">See code</span>
288
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevronIcon.html) -->
289
+ <!-- The below code snippet is automatically added from ./../apiExamples/chevronIcon.html -->
290
+
291
+ ```html
292
+ <auro-dropdown aria-label="custom label" chevron>
293
+ Lorem ipsum solar
294
+ <div slot="trigger">
295
+ <auro-icon
296
+ category="interface"
297
+ name="arrow-down"></auro-icon>
298
+ </div>
299
+ </auro-dropdown>
300
+ ```
301
+ <!-- AURO-GENERATED-CONTENT:END -->
302
+ </auro-accordion>
303
+ <div class="exampleWrapper">
304
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevronButton.html) -->
305
+ <!-- The below content is automatically added from ./../apiExamples/chevronButton.html -->
306
+ <auro-dropdown aria-label="custom label" chevron>
307
+ Lorem ipsum solar
308
+ <div slot="trigger">
309
+ <auro-button slot="trigger">
310
+ Dropdown
311
+ </auro-button>
312
+ </div>
313
+ </auro-dropdown>
314
+ <!-- AURO-GENERATED-CONTENT:END -->
315
+ </div>
316
+ <auro-accordion alignRight>
317
+ <span slot="trigger">See code</span>
318
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevronButton.html) -->
319
+ <!-- The below code snippet is automatically added from ./../apiExamples/chevronButton.html -->
320
+
321
+ ```html
322
+ <auro-dropdown aria-label="custom label" chevron>
323
+ Lorem ipsum solar
324
+ <div slot="trigger">
325
+ <auro-button slot="trigger">
326
+ Dropdown
327
+ </auro-button>
328
+ </div>
329
+ </auro-dropdown>
330
+ ```
331
+ <!-- AURO-GENERATED-CONTENT:END -->
332
+ </auro-accordion>
333
+ <div class="exampleWrapper">
334
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevronInput.html) -->
335
+ <!-- The below content is automatically added from ./../apiExamples/chevronInput.html -->
336
+ <auro-dropdown aria-label="custom label" chevron>
337
+ Lorem ipsum solar
338
+ <div slot="trigger">
339
+ <auro-input
340
+ slot="trigger"
341
+ id="inputExampleTrigger">
342
+ </auro-input>
343
+ </div>
344
+ </auro-dropdown>
345
+ <!-- AURO-GENERATED-CONTENT:END -->
346
+ </div>
347
+ <auro-accordion alignRight>
348
+ <span slot="trigger">See code</span>
349
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevronInput.html) -->
350
+ <!-- The below code snippet is automatically added from ./../apiExamples/chevronInput.html -->
351
+
352
+ ```html
353
+ <auro-dropdown aria-label="custom label" chevron>
354
+ Lorem ipsum solar
355
+ <div slot="trigger">
356
+ <auro-input
357
+ slot="trigger"
358
+ id="inputExampleTrigger">
359
+ </auro-input>
360
+ </div>
361
+ </auro-dropdown>
362
+ ```
363
+ <!-- AURO-GENERATED-CONTENT:END -->
364
+ </auro-accordion>
365
+
366
+ #### disabled
367
+
368
+ Disables the trigger preventing the dropdown bib from being shown.
369
+
370
+ <div class="exampleWrapper">
371
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
372
+ <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
373
+ <auro-dropdown
374
+ aria-label="custom label"
375
+ disabled
376
+ chevron
377
+ rounded
378
+ inset
379
+ bordered>
380
+ Lorem ipsum solar
381
+ <div slot="trigger">
382
+ Trigger
383
+ </div>
384
+ <span slot="helpText">
385
+ Helper text
386
+ </span>
387
+ <span slot="label">
388
+ Name
389
+ </span>
390
+ </auro-dropdown>
391
+ <!-- AURO-GENERATED-CONTENT:END -->
392
+ </div>
393
+ <div class="exampleWrapper--ondark" aria-hidden>
394
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
395
+ <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
396
+ <auro-dropdown
397
+ aria-label="custom label"
398
+ disabled
399
+ onDark
400
+ chevron
401
+ layout="classic" shape="classic" size="lg">
402
+ Lorem ipsum solar
403
+ <div slot="trigger">
404
+ Trigger
405
+ </div>
406
+ <span slot="helpText">
407
+ Helper text
408
+ </span>
409
+ <span slot="label">
410
+ Name
411
+ </span>
412
+ </auro-dropdown>
413
+ <!-- AURO-GENERATED-CONTENT:END -->
414
+ </div>
415
+ <auro-accordion alignRight>
416
+ <span slot="trigger">See code</span>
417
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
418
+ <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
419
+
420
+ ```html
421
+ <auro-dropdown
422
+ aria-label="custom label"
423
+ disabled
424
+ chevron
425
+ rounded
426
+ inset
427
+ bordered>
428
+ Lorem ipsum solar
429
+ <div slot="trigger">
430
+ Trigger
431
+ </div>
432
+ <span slot="helpText">
433
+ Helper text
434
+ </span>
435
+ <span slot="label">
436
+ Name
437
+ </span>
438
+ </auro-dropdown>
439
+ ```
440
+ <!-- AURO-GENERATED-CONTENT:END -->
441
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
442
+ <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
443
+ <auro-dropdown
444
+ aria-label="custom label"
445
+ disabled
446
+ onDark
447
+ chevron
448
+ layout="classic" shape="classic" size="lg">
449
+ Lorem ipsum solar
450
+ <div slot="trigger">
451
+ Trigger
452
+ </div>
453
+ <span slot="helpText">
454
+ Helper text
455
+ </span>
456
+ <span slot="label">
457
+ Name
458
+ </span>
459
+ </auro-dropdown>
460
+ <!-- AURO-GENERATED-CONTENT:END -->
461
+ </auro-accordion>
462
+
463
+ #### error
464
+
465
+ Adds the error state UI to the trigger.
466
+
467
+ <div class="exampleWrapper">
468
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
469
+ <!-- The below content is automatically added from ./../apiExamples/error.html -->
470
+ <auro-dropdown common error id="commonSlotError">
471
+ <div style="padding: var(--ds-size-150);">
472
+ Lorem ipsum solar
473
+ <br />
474
+ <auro-button onclick="document.querySelector('#commonSlotError').hide()">
475
+ Dismiss Dropdown
476
+ </auro-button>
477
+ </div>
478
+ <span slot="helpText">
479
+ Help text
480
+ </span>
481
+ <span slot="label">
482
+ Element label (default text will be read by screen reader)
483
+ </span>
484
+ <div slot="trigger">
485
+ Trigger
486
+ </div>
487
+ </auro-dropdown>
488
+ <!-- AURO-GENERATED-CONTENT:END -->
489
+ </div>
490
+ <div class="exampleWrapper--ondark" aria-hidden>
491
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
492
+ <!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
493
+ <auro-dropdown onDark layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
494
+ <div style="padding: var(--ds-size-150);">
495
+ Lorem ipsum solar
496
+ <br />
497
+ <auro-button onclick="document.querySelector('#commonSlotErrorOnDark').hide()">
498
+ Dismiss Dropdown
499
+ </auro-button>
500
+ </div>
501
+ <span slot="helpText">
502
+ Help text
503
+ </span>
504
+ <span slot="label">
505
+ Element label (default text will be read by screen reader)
506
+ </span>
507
+ <div slot="trigger">
508
+ Trigger
509
+ </div>
510
+ </auro-dropdown>
511
+ <!-- AURO-GENERATED-CONTENT:END -->
512
+ </div>
513
+ <auro-accordion alignRight>
514
+ <span slot="trigger">See code</span>
515
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
516
+ <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
517
+
518
+ ```html
519
+ <auro-dropdown common error id="commonSlotError">
520
+ <div style="padding: var(--ds-size-150);">
521
+ Lorem ipsum solar
522
+ <br />
523
+ <auro-button onclick="document.querySelector('#commonSlotError').hide()">
524
+ Dismiss Dropdown
525
+ </auro-button>
526
+ </div>
527
+ <span slot="helpText">
528
+ Help text
529
+ </span>
530
+ <span slot="label">
531
+ Element label (default text will be read by screen reader)
532
+ </span>
533
+ <div slot="trigger">
534
+ Trigger
535
+ </div>
536
+ </auro-dropdown>
537
+ ```
538
+ <!-- AURO-GENERATED-CONTENT:END -->
539
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
540
+ <!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
541
+ <auro-dropdown onDark layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
542
+ <div style="padding: var(--ds-size-150);">
543
+ Lorem ipsum solar
544
+ <br />
545
+ <auro-button onclick="document.querySelector('#commonSlotErrorOnDark').hide()">
546
+ Dismiss Dropdown
547
+ </auro-button>
548
+ </div>
549
+ <span slot="helpText">
550
+ Help text
551
+ </span>
552
+ <span slot="label">
553
+ Element label (default text will be read by screen reader)
554
+ </span>
555
+ <div slot="trigger">
556
+ Trigger
557
+ </div>
558
+ </auro-dropdown>
559
+ <!-- AURO-GENERATED-CONTENT:END -->
560
+ </auro-accordion>
561
+
562
+ #### noToggle
563
+
564
+ 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.
565
+
566
+ <div class="exampleWrapper">
567
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/noToggle.html) -->
568
+ <!-- The below content is automatically added from ./../apiExamples/noToggle.html -->
569
+ <auro-dropdown aria-label="custom label" noToggle>
570
+ Lorem ipsum solar
571
+ <div slot="trigger">
572
+ Trigger
573
+ </div>
574
+ </auro-dropdown>
575
+ <!-- AURO-GENERATED-CONTENT:END -->
576
+ </div>
577
+ <auro-accordion alignRight>
578
+ <span slot="trigger">See code</span>
579
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/noToggle.html) -->
580
+ <!-- The below code snippet is automatically added from ./../apiExamples/noToggle.html -->
581
+
582
+ ```html
583
+ <auro-dropdown aria-label="custom label" noToggle>
584
+ Lorem ipsum solar
585
+ <div slot="trigger">
586
+ Trigger
587
+ </div>
588
+ </auro-dropdown>
589
+ ```
590
+ <!-- AURO-GENERATED-CONTENT:END -->
591
+ </auro-accordion>
592
+
593
+ #### fullscreenBreakpoint
594
+
595
+ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will switch the dropdown to fullscreen mode.
596
+
597
+ <div class="exampleWrapper">
598
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customDimensions300.html) -->
599
+ <!-- The below content is automatically added from ./../apiExamples/customDimensions300.html -->
600
+ <style>
601
+ #customDropdown300::part(size) {
602
+ width: 300px;
603
+ max-height: 200px;
604
+ }
605
+ </style>
606
+ <div style="width: 300px;" aria-label="custom label">
607
+ <auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
608
+ <div>
609
+ <p>
610
+ 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.
611
+ </p>
612
+ <p>
613
+ 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.
614
+ </p>
615
+ <p>
616
+ 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.
617
+ </p>
618
+ </div>
619
+ <div slot="trigger">
620
+ Trigger
621
+ </div>
622
+ </auro-dropdown>
623
+ </div>
624
+ <!-- AURO-GENERATED-CONTENT:END -->
625
+ </div>
626
+ <auro-accordion alignRight>
627
+ <span slot="trigger">See code</span>
628
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/customDimensions300.html) -->
629
+ <!-- The below code snippet is automatically added from ./../apiExamples/customDimensions300.html -->
630
+
631
+ ```html
632
+ <style>
633
+ #customDropdown300::part(size) {
634
+ width: 300px;
635
+ max-height: 200px;
636
+ }
637
+ </style>
638
+ <div style="width: 300px;" aria-label="custom label">
639
+ <auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
640
+ <div>
641
+ <p>
642
+ 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.
643
+ </p>
644
+ <p>
645
+ 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.
646
+ </p>
647
+ <p>
648
+ 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.
649
+ </p>
650
+ </div>
651
+ <div slot="trigger">
652
+ Trigger
653
+ </div>
654
+ </auro-dropdown>
655
+ </div>
656
+ ```
657
+ <!-- AURO-GENERATED-CONTENT:END -->
658
+ </auro-accordion>
659
+
660
+ ### Customized bib position
661
+ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement` attributes.
662
+
663
+ - `placement` specifies the preferred position where the bib should appear relative to the trigger.
664
+ - `offset` sets the distance between the trigger and the bib.
665
+ - 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`.
666
+ - Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
667
+
668
+ <div class="exampleWrapper">
669
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floaterConfig.html) -->
670
+ <!-- The below content is automatically added from ./../apiExamples/floaterConfig.html -->
671
+ <style>
672
+ .floaterConfigDropdown::part(size) {
673
+ width: 300px;
674
+ max-height: 200px;
675
+ }
676
+ </style>
677
+ <div aria-label="custom label">
678
+ <auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20" noFlip>
679
+ <div>
680
+ <p>
681
+ 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.
682
+ </p>
683
+ <p>
684
+ 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.
685
+ </p>
686
+ <p>
687
+ 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.
688
+ </p>
689
+ </div>
690
+ <div slot="trigger">
691
+ Trigger
692
+ </div>
693
+ <span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
694
+ </auro-dropdown>
695
+ </div>
696
+ <div aria-label="custom label">
697
+ <auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20">
698
+ <div>
699
+ <p>
700
+ 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.
701
+ </p>
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
+ </div>
709
+ <div slot="trigger">
710
+ Trigger
711
+ </div>
712
+ <div slot="helpText">
713
+ Trigger for bottom-end bib with 20px offset and flip
714
+ </div>
715
+ </auro-dropdown>
716
+ </div>
717
+ <div aria-label="custom label">
718
+ <auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron autoPlacement noFlip placement="right" offset="20">
719
+ <div>
720
+ <p>
721
+ 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.
722
+ </p>
723
+ <p>
724
+ 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.
725
+ </p>
726
+ <p>
727
+ 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.
728
+ </p>
729
+ </div>
730
+ <div slot="trigger">
731
+ Trigger
732
+ </div>
733
+ <div slot="helpText">
734
+ Trigger for right bib with 20px offset, autoPlacement and noFlip
735
+ </div>
736
+ </auro-dropdown>
737
+ </div>
738
+ <!-- AURO-GENERATED-CONTENT:END -->
739
+ </div>
740
+ <auro-accordion alignRight>
741
+ <span slot="trigger">See code</span>
742
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floaterConfig.html) -->
743
+ <!-- The below code snippet is automatically added from ./../apiExamples/floaterConfig.html -->
744
+
745
+ ```html
746
+ <style>
747
+ .floaterConfigDropdown::part(size) {
748
+ width: 300px;
749
+ max-height: 200px;
750
+ }
751
+ </style>
752
+ <div aria-label="custom label">
753
+ <auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20" noFlip>
754
+ <div>
755
+ <p>
756
+ 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.
757
+ </p>
758
+ <p>
759
+ 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.
760
+ </p>
761
+ <p>
762
+ 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.
763
+ </p>
764
+ </div>
765
+ <div slot="trigger">
766
+ Trigger
767
+ </div>
768
+ <span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
769
+ </auro-dropdown>
770
+ </div>
771
+ <div aria-label="custom label">
772
+ <auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20">
773
+ <div>
774
+ <p>
775
+ 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.
776
+ </p>
777
+ <p>
778
+ 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.
779
+ </p>
780
+ <p>
781
+ 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.
782
+ </p>
783
+ </div>
784
+ <div slot="trigger">
785
+ Trigger
786
+ </div>
787
+ <div slot="helpText">
788
+ Trigger for bottom-end bib with 20px offset and flip
789
+ </div>
790
+ </auro-dropdown>
791
+ </div>
792
+ <div aria-label="custom label">
793
+ <auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron autoPlacement noFlip placement="right" offset="20">
794
+ <div>
795
+ <p>
796
+ 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.
797
+ </p>
798
+ <p>
799
+ 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.
800
+ </p>
801
+ <p>
802
+ 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.
803
+ </p>
804
+ </div>
805
+ <div slot="trigger">
806
+ Trigger
807
+ </div>
808
+ <div slot="helpText">
809
+ Trigger for right bib with 20px offset, autoPlacement and noFlip
810
+ </div>
811
+ </auro-dropdown>
812
+ </div>
813
+ ```
814
+ <!-- AURO-GENERATED-CONTENT:END -->
815
+ </auro-accordion>
816
+
817
+ ### Slot Examples
818
+
819
+ #### default
820
+
821
+ All examples shown on this page include default slot content.
822
+
823
+ #### trigger
824
+
825
+ 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>`.
826
+
827
+ This slot may contain any static content (e.g. plain text) and/or no more than one of the following elements:
828
+ - `<a>`
829
+ - `<auro-hyperlink>`
830
+ - `<button>`
831
+ - `<auro-button>`
832
+ - `<input>`
833
+ - `<auro-input>`
834
+
835
+ #### label
836
+
837
+ Content defined in the `label` slot will be rendered left aligned inside the trigger above all other defined trigger slot content.
838
+
839
+ <div class="exampleWrapper">
840
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/label.html) -->
841
+ <!-- The below content is automatically added from ./../apiExamples/label.html -->
842
+ <auro-dropdown
843
+ bordered
844
+ rounded
845
+ inset
846
+ chevron>
847
+ Lorem ipsum solar
848
+ <span slot="label">Name</span>
849
+ <div slot="trigger">
850
+ Trigger
851
+ </div>
852
+ </auro-dropdown>
853
+ <!-- AURO-GENERATED-CONTENT:END -->
854
+ </div>
855
+ <auro-accordion alignRight>
856
+ <span slot="trigger">See code</span>
857
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/label.html) -->
858
+ <!-- The below code snippet is automatically added from ./../apiExamples/label.html -->
859
+
860
+ ```html
861
+ <auro-dropdown
862
+ bordered
863
+ rounded
864
+ inset
865
+ chevron>
866
+ Lorem ipsum solar
867
+ <span slot="label">Name</span>
868
+ <div slot="trigger">
869
+ Trigger
870
+ </div>
871
+ </auro-dropdown>
872
+ ```
873
+ <!-- AURO-GENERATED-CONTENT:END -->
874
+ </auro-accordion>
875
+
876
+ #### helpText
877
+
878
+ 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.
879
+
880
+ <div class="exampleWrapper">
881
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
882
+ <!-- The below content is automatically added from ./../apiExamples/helpText.html -->
883
+ <auro-dropdown
884
+ aria-label="custom label"
885
+ inset
886
+ bordered
887
+ rounded>
888
+ Lorem ipsum solar
889
+ <span slot="helpText">
890
+ Helper text
891
+ </span>
892
+ <div slot="trigger">
893
+ Trigger
894
+ </div>
895
+ </auro-dropdown>
896
+ <!-- AURO-GENERATED-CONTENT:END -->
897
+ </div>
898
+ <auro-accordion alignRight>
899
+ <span slot="trigger">See code</span>
900
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/helpText.html) -->
901
+ <!-- The below code snippet is automatically added from ./../apiExamples/helpText.html -->
902
+
903
+ ```html
904
+ <auro-dropdown
905
+ aria-label="custom label"
906
+ inset
907
+ bordered
908
+ rounded>
909
+ Lorem ipsum solar
910
+ <span slot="helpText">
911
+ Helper text
912
+ </span>
913
+ <div slot="trigger">
914
+ Trigger
915
+ </div>
916
+ </auro-dropdown>
917
+ ```
918
+ <!-- AURO-GENERATED-CONTENT:END -->
919
+ </auro-accordion>
920
+
921
+ #####
922
+
923
+ When combined with the `error` property the `helpText` slot content is colored red.
924
+
925
+ <div class="exampleWrapper">
926
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpTextError.html) -->
927
+ <!-- The below content is automatically added from ./../apiExamples/helpTextError.html -->
928
+ <auro-dropdown
929
+ aria-label="custom label"
930
+ inset
931
+ bordered
932
+ rounded
933
+ error>
934
+ Lorem ipsum solar
935
+ <span slot="helpText">
936
+ Helper text
937
+ </span>
938
+ <div slot="trigger">
939
+ Trigger
940
+ </div>
941
+ </auro-dropdown>
942
+ <!-- AURO-GENERATED-CONTENT:END -->
943
+ </div>
944
+ <auro-accordion alignRight>
945
+ <span slot="trigger">See code</span>
946
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/helpTextError.html) -->
947
+ <!-- The below code snippet is automatically added from ./../apiExamples/helpTextError.html -->
948
+
949
+ ```html
950
+ <auro-dropdown
951
+ aria-label="custom label"
952
+ inset
953
+ bordered
954
+ rounded
955
+ error>
956
+ Lorem ipsum solar
957
+ <span slot="helpText">
958
+ Helper text
959
+ </span>
960
+ <div slot="trigger">
961
+ Trigger
962
+ </div>
963
+ </auro-dropdown>
964
+ ```
965
+ <!-- AURO-GENERATED-CONTENT:END -->
966
+ </auro-accordion>
967
+
968
+ ### Method Examples
969
+
970
+ #### show
971
+
972
+ 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.
973
+
974
+ <div class="exampleWrapper">
975
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticallyShow.html) -->
976
+ <!-- The below content is automatically added from ./../apiExamples/programmaticallyShow.html -->
977
+ <auro-input id="showExampleTriggerInput" required>
978
+ <span slot="label">Enter a value to show the dropdown</span>
979
+ </auro-input>
980
+ <auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
981
+ <p>
982
+ Lorem ipsum solar
983
+ </p>
984
+ <span slot="trigger">Trigger Label</span>
985
+ </auro-dropdown>
986
+ <!-- AURO-GENERATED-CONTENT:END -->
987
+ </div>
988
+ <auro-accordion alignRight>
989
+ <span slot="trigger">See code</span>
990
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmaticallyShow.html) -->
991
+ <!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyShow.html -->
992
+
993
+ ```html
994
+ <auro-input id="showExampleTriggerInput" required>
995
+ <span slot="label">Enter a value to show the dropdown</span>
996
+ </auro-input>
997
+ <auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
998
+ <p>
999
+ Lorem ipsum solar
1000
+ </p>
1001
+ <span slot="trigger">Trigger Label</span>
1002
+ </auro-dropdown>
1003
+ ```
1004
+ <!-- AURO-GENERATED-CONTENT:END -->
1005
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmaticallyShow.js) -->
1006
+ <!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyShow.js -->
1007
+
1008
+ ```js
1009
+ export function showExample() {
1010
+ const triggerInput = document.querySelector('#showExampleTriggerInput');
1011
+ const dropdownElem = document.querySelector('#showMethodExample');
1012
+
1013
+ triggerInput.addEventListener('keydown', () => {
1014
+ dropdownElem.show();
1015
+ });
1016
+ }
1017
+ ```
1018
+ <!-- AURO-GENERATED-CONTENT:END -->
1019
+ </auro-accordion>
1020
+
1021
+ #### hide
1022
+
1023
+ 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.
1024
+
1025
+ The `hide` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').hide()`.
1026
+
1027
+ This example demonstrations collapsing the dropdown by clicking a button within the dropdown bib content.
1028
+
1029
+ <div class="exampleWrapper">
1030
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticallyHide.html) -->
1031
+ <!-- The below content is automatically added from ./../apiExamples/programmaticallyHide.html -->
1032
+ <auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
1033
+ <p>
1034
+ Lorem ipsum solar
1035
+ </p>
1036
+ <auro-button id="hideExampleBtn">
1037
+ Dismiss Dropdown
1038
+ </auro-button>
1039
+ <auro-input
1040
+ slot="trigger"
1041
+ id="hideExampleTrigger">
1042
+ </auro-input>
1043
+ </auro-dropdown>
1044
+ <!-- AURO-GENERATED-CONTENT:END -->
1045
+ </div>
1046
+ <auro-accordion alignRight>
1047
+ <span slot="trigger">See code</span>
1048
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmaticallyHide.html) -->
1049
+ <!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyHide.html -->
1050
+
1051
+ ```html
1052
+ <auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
1053
+ <p>
1054
+ Lorem ipsum solar
1055
+ </p>
1056
+ <auro-button id="hideExampleBtn">
1057
+ Dismiss Dropdown
1058
+ </auro-button>
1059
+ <auro-input
1060
+ slot="trigger"
1061
+ id="hideExampleTrigger">
1062
+ </auro-input>
1063
+ </auro-dropdown>
1064
+ ```
1065
+ <!-- AURO-GENERATED-CONTENT:END -->
1066
+ </auro-accordion>
1067
+ </auro-accordion>
1068
+
1069
+ ### Other Examples
1070
+
1071
+ #### Width and Sizing Behavior
1072
+
1073
+ - **Width:** The `auro-dropdown` component will automatically consume the full width of its parent container. To make it narrower, you can style the `size` part.
1074
+
1075
+ - **Styling Options:** Only the following styles can be applied to the `size` part:
1076
+ - `width`
1077
+ - `height`
1078
+ - `maxWidth`
1079
+ - `maxHeight`
1080
+
1081
+ - **Scroll Behavior:** When the content exceeds the specified size, the browser will provide a scroll for the overflow.
1082
+
1083
+ <div class="exampleWrapper">
1084
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customDimensions100.html) -->
1085
+ <!-- The below content is automatically added from ./../apiExamples/customDimensions100.html -->
1086
+ <style>
1087
+ #customDropdown100::part(size) {
1088
+ width: 100px;
1089
+ max-height: 200px;
1090
+ }
1091
+ </style>
1092
+ <div style="width: 100px;" aria-label="custom label">
1093
+ <auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
1094
+ <div>
1095
+ <p>
1096
+ 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.
1097
+ </p>
1098
+ <p>
1099
+ 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.
1100
+ </p>
1101
+ <p>
1102
+ 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.
1103
+ </p>
1104
+ </div>
1105
+ <div slot="trigger">
1106
+ Trigger
1107
+ </div>
1108
+ </auro-dropdown>
1109
+ </div>
1110
+ <!-- AURO-GENERATED-CONTENT:END -->
1111
+ </div>
1112
+ <auro-accordion alignRight>
1113
+ <span slot="trigger">See code</span>
1114
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/customDimensions100.html) -->
1115
+ <!-- The below code snippet is automatically added from ./../apiExamples/customDimensions100.html -->
1116
+
1117
+ ```html
1118
+ <style>
1119
+ #customDropdown100::part(size) {
1120
+ width: 100px;
1121
+ max-height: 200px;
1122
+ }
1123
+ </style>
1124
+ <div style="width: 100px;" aria-label="custom label">
1125
+ <auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
1126
+ <div>
1127
+ <p>
1128
+ 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.
1129
+ </p>
1130
+ <p>
1131
+ 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.
1132
+ </p>
1133
+ <p>
1134
+ 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.
1135
+ </p>
1136
+ </div>
1137
+ <div slot="trigger">
1138
+ Trigger
1139
+ </div>
1140
+ </auro-dropdown>
1141
+ </div>
1142
+ ```
1143
+ <!-- AURO-GENERATED-CONTENT:END -->
1144
+ </auro-accordion>
1145
+
1146
+ #### In Auro Dialog
1147
+
1148
+ The component can be in a dialog.
1149
+
1150
+ <div class="exampleWrapper">
1151
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inDialog.html) -->
1152
+ <!-- The below content is automatically added from ./../apiExamples/inDialog.html -->
1153
+ <div>
1154
+ <auro-button id="dropdown-dialog-opener">Dropdown in Dialog</auro-button>
1155
+ <auro-dialog id="dropdown-dialog">
1156
+ <span slot="header">Dropdown in Dialog</span>
1157
+ <div slot="content">
1158
+ <auro-dropdown id="commonSlot" common bordered rounded inset chevron>
1159
+ <div style="padding: var(--ds-size-150);">
1160
+ Lorem ipsum solar
1161
+ <br />
1162
+ <auro-button onclick="document.querySelector('#commonSlot').hide()">
1163
+ Dismiss Dropdown
1164
+ </auro-button>
1165
+ </div>
1166
+ <span slot="helpText">
1167
+ Help text
1168
+ </span>
1169
+ <span slot="label">
1170
+ Element label (default text will be read by screen reader)
1171
+ </span>
1172
+ <div slot="trigger">
1173
+ Dropdown Trigger in Dialog
1174
+ </div>
1175
+ </auro-dropdown>
1176
+ </div>
1177
+ </auro-dialog>
1178
+ </div>
1179
+ <!-- AURO-GENERATED-CONTENT:END -->
1180
+ </div>
1181
+ <auro-accordion alignRight>
1182
+ <span slot="trigger">See code</span>
1183
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inDialog.html) -->
1184
+ <!-- The below code snippet is automatically added from ./../apiExamples/inDialog.html -->
1185
+
1186
+ ```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="commonSlot" common bordered rounded inset chevron>
1193
+ <div style="padding: var(--ds-size-150);">
1194
+ Lorem ipsum solar
1195
+ <br />
1196
+ <auro-button onclick="document.querySelector('#commonSlot').hide()">
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
+ ```
1214
+ <!-- AURO-GENERATED-CONTENT:END -->
1215
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inDialog.js) -->
1216
+ <!-- The below code snippet is automatically added from ./../apiExamples/inDialog.js -->
1217
+
1218
+ ```js
1219
+ export function inDialogExample() {
1220
+ document.querySelector("#dropdown-dialog-opener").addEventListener("click", () => {
1221
+ const dialog = document.querySelector("#dropdown-dialog");
1222
+ dialog.open = true;
1223
+ });
1224
+ };
1225
+ ```
1226
+ <!-- AURO-GENERATED-CONTENT:END -->
1227
+ </auro-accordion>
1228
+
1229
+ ### Theme Support
1230
+
1231
+ The component may be restyled using the following code sample and changing the values of the following token(s).
1232
+
1233
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
1234
+ <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
1235
+
1236
+ ```scss
1237
+ @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
1238
+ @use "@aurodesignsystem/design-tokens/dist/legacy/auro-classic/SCSSVariables" as vac;
1239
+
1240
+ :host(:not([ondark])) {
1241
+ --ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
1242
+ --ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1243
+ --ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1244
+ --ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
1245
+ --ds-auro-dropdown-trigger-outline-color: transparent;
1246
+ --ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1247
+ --ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{vac.$ds-elevation-200});
1248
+ --ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1249
+ --ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1250
+ --ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1251
+ }
1252
+
1253
+ :host([ondark]) {
1254
+ --ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #{v.$ds-basic-color-texticon-inverse-muted});
1255
+ --ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1256
+ --ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1257
+ --ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #{v.$ds-basic-color-border-inverse});
1258
+ --ds-auro-dropdown-trigger-outline-color: transparent;
1259
+ --ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
1260
+ --ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{vac.$ds-elevation-200});
1261
+ --ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1262
+ --ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1263
+ --ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
1264
+ }
1265
+ ```
1266
+ <!-- AURO-GENERATED-CONTENT:END -->