@aurodesignsystem-dev/auro-formkit 0.0.0-pr1422.0 → 0.0.0-pr1422.2

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