@aurodesignsystem-dev/auro-formkit 0.0.0-pr1457.0 → 0.0.0-pr1457.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.
- package/components/checkbox/README.md +2 -2
- package/components/checkbox/demo/accessibility.html +1 -1
- package/components/checkbox/demo/api.html +2 -1
- package/components/checkbox/demo/customize.html +1 -1
- package/components/checkbox/demo/demo-support.js +1 -60
- package/components/checkbox/demo/demo-support.min.js +60 -0
- package/components/checkbox/demo/design.html +2 -1
- package/components/checkbox/demo/getting-started.html +1 -1
- package/components/checkbox/demo/getting-started.md +156 -2
- package/components/checkbox/demo/index.html +1 -1
- package/components/checkbox/demo/index.min.js +3 -2
- package/components/checkbox/demo/install.html +49 -0
- package/components/checkbox/demo/install.md +2 -2
- package/components/checkbox/demo/keyboard-behavior.html +1 -1
- package/components/checkbox/demo/pages.json +1 -0
- package/components/checkbox/demo/readme.html +2 -1
- package/components/checkbox/demo/readme.md +2 -2
- package/components/checkbox/demo/styles.min.css +1 -1
- package/components/checkbox/demo/voiceover.html +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +1 -0
- package/components/checkbox/dist/index.js +3 -2
- package/components/checkbox/dist/registered.js +3 -2
- package/components/combobox/README.md +2 -2
- package/components/combobox/demo/accessibility.html +1 -3
- package/components/combobox/demo/api.html +2 -3
- package/components/combobox/demo/customize.html +1 -1
- package/components/combobox/demo/demo-support.js +1 -60
- package/components/combobox/demo/demo-support.min.js +60 -0
- package/components/combobox/demo/design.html +2 -3
- package/components/combobox/demo/getting-started.html +1 -1
- package/components/combobox/demo/getting-started.md +2 -2
- package/components/combobox/demo/index.html +1 -1
- package/components/combobox/demo/install.html +50 -0
- package/components/combobox/demo/install.md +2 -2
- package/components/combobox/demo/keyboard-behavior.html +1 -3
- package/components/combobox/demo/pages.json +1 -0
- package/components/combobox/demo/readme.html +2 -3
- package/components/combobox/demo/readme.md +2 -2
- package/components/combobox/demo/registered.min.js +5 -4
- package/components/combobox/demo/styles.min.css +1 -1
- package/components/combobox/demo/voiceover.html +1 -3
- package/components/combobox/dist/index.js +5 -4
- package/components/combobox/dist/registered.js +5 -4
- package/components/counter/README.md +21 -47
- package/components/counter/demo/accessibility.html +49 -0
- package/components/counter/demo/accessibility.md +34 -0
- package/components/counter/demo/api.html +13 -21
- package/components/counter/demo/api.md +49 -1299
- package/components/counter/demo/api.min.js +1 -8390
- package/components/counter/demo/auro-counter-group.min.js +8392 -0
- package/components/counter/demo/customize.html +53 -0
- package/components/counter/demo/customize.md +650 -0
- package/components/counter/demo/demo-support.js +1 -0
- package/components/counter/demo/demo-support.min.js +55792 -0
- package/components/counter/demo/design.html +52 -0
- package/components/counter/demo/design.md +192 -0
- package/components/counter/demo/getting-started.html +54 -0
- package/components/counter/demo/getting-started.md +482 -0
- package/components/counter/demo/index.html +14 -20
- package/components/counter/demo/index.md +117 -51
- package/components/counter/demo/index.min.js +1 -8390
- package/components/{dropdown/demo/keyboardBehavior.html → counter/demo/keyboard-behavior.html} +9 -42
- package/components/counter/demo/keyboardBehavior.html +7 -40
- package/components/counter/demo/pages.json +1 -0
- package/components/counter/demo/readme.html +12 -16
- package/components/counter/demo/readme.md +21 -47
- package/components/counter/demo/styles.min.css +1 -0
- package/components/counter/demo/styles.scss +1 -0
- package/components/counter/demo/voiceover.html +51 -0
- package/components/counter/demo/voiceover.md +80 -0
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/README.md +2 -2
- package/components/datepicker/demo/accessibility.html +2 -3
- package/components/datepicker/demo/api.html +2 -2
- package/components/datepicker/demo/auro-datepicker.min.js +5 -4
- package/components/datepicker/demo/customize.html +1 -1
- package/components/datepicker/demo/demo-support.js +1 -60
- package/components/datepicker/demo/demo-support.min.js +60 -0
- package/components/datepicker/demo/design.html +3 -4
- package/components/datepicker/demo/getting-started.html +1 -1
- package/components/datepicker/demo/getting-started.md +2 -2
- package/components/datepicker/demo/index.html +1 -1
- package/components/datepicker/demo/keyboard-behavior.html +2 -4
- package/components/datepicker/demo/pages.json +1 -0
- package/components/datepicker/demo/readme.html +2 -2
- package/components/datepicker/demo/readme.md +2 -2
- package/components/datepicker/demo/styles.min.css +1 -1
- package/components/datepicker/demo/voiceover.html +2 -4
- package/components/datepicker/dist/index.js +5 -4
- package/components/datepicker/dist/registered.js +5 -4
- package/components/dropdown/README.md +0 -21
- package/components/dropdown/demo/accessibility.html +49 -0
- package/components/dropdown/demo/accessibility.md +45 -0
- package/components/dropdown/demo/api.html +11 -20
- package/components/dropdown/demo/api.md +40 -1364
- package/components/dropdown/demo/api.min.js +2 -5098
- package/components/dropdown/demo/auro-dropdown.min.js +5099 -0
- package/components/dropdown/demo/customize.html +54 -0
- package/components/dropdown/demo/customize.md +780 -0
- package/components/dropdown/demo/demo-support.js +1 -0
- package/components/dropdown/demo/demo-support.min.js +55792 -0
- package/components/dropdown/demo/design.html +52 -0
- package/components/dropdown/demo/design.md +186 -0
- package/components/dropdown/demo/getting-started.html +54 -0
- package/components/dropdown/demo/getting-started.md +463 -0
- package/components/dropdown/demo/index.html +12 -21
- package/components/dropdown/demo/index.md +78 -233
- package/components/dropdown/demo/index.min.js +1 -5097
- package/components/dropdown/demo/keyboard-behavior.html +48 -0
- package/components/dropdown/demo/pages.json +1 -0
- package/components/dropdown/demo/readme.html +8 -21
- package/components/dropdown/demo/readme.md +0 -21
- package/components/dropdown/demo/styles.min.css +1 -0
- package/components/dropdown/demo/styles.scss +1 -0
- package/components/dropdown/demo/voiceover.html +51 -0
- package/components/dropdown/demo/voiceover.md +63 -0
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/README.md +9 -9
- package/components/form/demo/accessibility.html +51 -0
- package/components/form/demo/accessibility.md +23 -0
- package/components/form/demo/api.html +12 -15
- package/components/form/demo/api.md +14 -290
- package/components/form/demo/api.min.js +2 -71921
- package/components/form/demo/auro-form.min.js +718 -0
- package/components/form/demo/autocomplete.html +2 -2
- package/components/form/demo/customize.html +54 -0
- package/components/form/demo/customize.md +246 -0
- package/components/form/demo/demo-support.js +1 -0
- package/components/form/demo/demo-support.min.js +55792 -0
- package/components/form/demo/getting-started.html +54 -0
- package/components/form/demo/getting-started.md +434 -0
- package/components/form/demo/index.html +13 -15
- package/components/form/demo/index.md +67 -97
- package/components/form/demo/index.min.js +2 -71921
- package/components/form/demo/keyboard-behavior.html +51 -0
- package/components/form/demo/pages.json +1 -0
- package/components/form/demo/readme.html +13 -18
- package/components/form/demo/readme.md +9 -9
- package/components/form/demo/registerDemoDeps.min.js +71212 -0
- package/components/form/demo/styles.min.css +1 -0
- package/components/form/demo/styles.scss +1 -0
- package/components/form/demo/voiceover.html +51 -0
- package/components/form/demo/voiceover.md +36 -0
- package/components/form/demo/working.html +3 -2
- package/components/input/README.md +2 -2
- package/components/input/demo/accessibility.html +1 -1
- package/components/input/demo/api.html +1 -1
- package/components/input/demo/auro-input.min.js +3 -2
- package/components/input/demo/customize.html +1 -1
- package/components/input/demo/demo-support.js +1 -60
- package/components/input/demo/demo-support.min.js +60 -0
- package/components/input/demo/design.html +2 -1
- package/components/input/demo/getting-started.html +1 -1
- package/components/input/demo/getting-started.md +2 -2
- package/components/input/demo/index.html +1 -1
- package/components/input/demo/keyboard-behavior.html +2 -1
- package/components/input/demo/pages.json +1 -0
- package/components/input/demo/readme.html +2 -2
- package/components/input/demo/readme.md +2 -2
- package/components/input/demo/styles.min.css +1 -1
- package/components/input/demo/voiceover.html +1 -1
- package/components/input/dist/base-input.d.ts +1 -0
- package/components/input/dist/index.js +3 -2
- package/components/input/dist/registered.js +3 -2
- package/components/menu/README.md +8 -26
- package/components/menu/demo/accessibility.html +53 -0
- package/components/menu/demo/accessibility.md +34 -0
- package/components/menu/demo/api.html +12 -18
- package/components/menu/demo/api.md +43 -1102
- package/components/menu/demo/api.min.js +2 -2288
- package/components/menu/demo/auro-menu.min.js +2289 -0
- package/components/menu/demo/customize.html +54 -0
- package/components/menu/demo/customize.md +637 -0
- package/components/menu/demo/demo-support.js +1 -0
- package/components/menu/demo/demo-support.min.js +55792 -0
- package/components/menu/demo/design.html +53 -0
- package/components/menu/demo/design.md +81 -0
- package/components/menu/demo/getting-started.html +54 -0
- package/components/menu/demo/getting-started.md +322 -0
- package/components/menu/demo/index.html +14 -20
- package/components/menu/demo/index.md +26 -63
- package/components/menu/demo/index.min.js +1 -2287
- package/components/menu/demo/keyboard-behavior.html +53 -0
- package/components/menu/demo/pages.json +1 -0
- package/components/menu/demo/readme.html +12 -16
- package/components/menu/demo/readme.md +8 -26
- package/components/menu/demo/styles.min.css +1 -0
- package/components/menu/demo/styles.scss +1 -0
- package/components/menu/demo/voiceover.html +53 -0
- package/components/menu/demo/voiceover.md +33 -0
- package/components/radio/demo/accessibility.html +3 -3
- package/components/radio/demo/api.html +3 -3
- package/components/radio/demo/api.md +44 -44
- package/components/radio/demo/api.min.js +2 -2168
- package/components/radio/demo/customize.html +3 -3
- package/components/radio/demo/demo-support.js +1 -60
- package/components/radio/demo/demo-support.min.js +55792 -0
- package/components/radio/demo/design.html +3 -3
- package/components/radio/demo/getting-started.html +3 -3
- package/components/radio/demo/getting-started.md +154 -0
- package/components/radio/demo/index.html +2 -3
- package/components/radio/demo/index.min.js +16 -2
- package/components/radio/demo/keyboard-behavior.html +3 -3
- package/components/radio/demo/pages.json +1 -0
- package/components/radio/demo/readme.html +3 -3
- package/components/radio/demo/styles.min.css +1 -0
- package/components/radio/demo/styles.scss +1 -0
- package/components/radio/demo/voiceover.html +3 -3
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +2 -2
- package/components/select/demo/accessibility.html +1 -1
- package/components/select/demo/api.html +2 -1
- package/components/select/demo/customize.html +1 -1
- package/components/select/demo/demo-support.js +1 -60
- package/components/select/demo/demo-support.min.js +60 -0
- package/components/select/demo/design.html +2 -1
- package/components/select/demo/getting-started.html +1 -1
- package/components/select/demo/getting-started.md +2 -2
- package/components/select/demo/index.html +1 -1
- package/components/select/demo/install.html +50 -0
- package/components/select/demo/install.md +2 -2
- package/components/select/demo/keyboard-behavior.html +1 -1
- package/components/select/demo/keyboardBehavior.html +1 -1
- package/components/select/demo/layout.html +2 -1
- package/components/select/demo/pages.json +1 -0
- package/components/select/demo/readme.html +2 -1
- package/components/select/demo/readme.md +2 -2
- package/components/select/demo/registered.min.js +2 -2
- package/components/select/demo/styles.min.css +1 -1
- package/components/select/demo/voiceover.html +1 -1
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +5 -2
- package/package.json +2 -2
- package/components/counter/demo/keyboard-behavior.md +0 -127
- package/components/dropdown/demo/keyboard-behavior.md +0 -72
- package/components/form/demo/keyboard-behavior.md +0 -38
- package/components/menu/demo/keyboard-behavior.md +0 -18
- package/components/radio/demo/keyboard-behavior.md +0 -72
- package/components/radio/demo/layout.md +0 -30
- package/components/radio/demo/styles.css +0 -974
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
<auro-header level="1" id="overview">Dropdown - Getting Started</auro-header>
|
|
2
|
+
<div class="contentWrapper">
|
|
3
|
+
<nav>
|
|
4
|
+
<auro-nav anchorNavContent=".scrollWrapper">
|
|
5
|
+
<span slot="mobileToggleCollapsed">View More</span>
|
|
6
|
+
<span slot="mobileToggleExpanded">View Less</span>
|
|
7
|
+
<auro-anchorlink fluid href="#setup">Setup</auro-anchorlink>
|
|
8
|
+
<auro-anchorlink fluid href="#frameworks">Frameworks</auro-anchorlink>
|
|
9
|
+
<auro-anchorlink fluid href="#react" class="level2 body-xs" onclick="openAccordion('react')">React</auro-anchorlink>
|
|
10
|
+
<auro-anchorlink fluid href="#svelte" class="level2 body-xs" onclick="openAccordion('svelte')">Svelte</auro-anchorlink>
|
|
11
|
+
<auro-anchorlink fluid href="#minimalConfig">Minimal Configuration</auro-anchorlink>
|
|
12
|
+
<auro-anchorlink fluid href="#slots">Slots</auro-anchorlink>
|
|
13
|
+
<auro-anchorlink fluid href="#slotTrigger" class="level2 body-xs">Trigger</auro-anchorlink>
|
|
14
|
+
<auro-anchorlink fluid href="#slotHelpText" class="level2 body-xs">Help Text</auro-anchorlink>
|
|
15
|
+
<auro-anchorlink fluid href="#functions">Functions</auro-anchorlink>
|
|
16
|
+
<auro-anchorlink fluid href="#fnShow" class="level2 body-xs">show()</auro-anchorlink>
|
|
17
|
+
<auro-anchorlink fluid href="#fnHide" class="level2 body-xs">hide()</auro-anchorlink>
|
|
18
|
+
</auro-nav>
|
|
19
|
+
</nav>
|
|
20
|
+
<div class="mainContent">
|
|
21
|
+
<div class="scrollWrapper">
|
|
22
|
+
<section>
|
|
23
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/install.md) -->
|
|
24
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/install.md -->
|
|
25
|
+
<auro-header level="2" id="setup">Setup</auro-header>
|
|
26
|
+
<auro-accordion-group Emphasis>
|
|
27
|
+
<auro-accordion expanded class="section" id="recommendedAccordion">
|
|
28
|
+
<span slot="trigger">Recommended Installation and Implementation</span>
|
|
29
|
+
<div class="accordion-content">
|
|
30
|
+
<auro-header level="3">Install</auro-header>
|
|
31
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/templates/componentInstall.md) -->
|
|
32
|
+
<!-- The below content is automatically added from ./../../../docs/templates/componentInstall.md -->
|
|
33
|
+
|
|
34
|
+
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
35
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
36
|
+
<auro-header level="3">Implementation</auro-header>
|
|
37
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customRegistration.md) -->
|
|
38
|
+
<!-- The below content is automatically added from ./../docs/partials/customRegistration.md -->
|
|
39
|
+
|
|
40
|
+
## Custom Component Registration for Version Management
|
|
41
|
+
|
|
42
|
+
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
43
|
+
|
|
44
|
+
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
45
|
+
|
|
46
|
+
<pre class="language-js"><code class="language-js">// Import the class only
|
|
47
|
+
import { AuroDropdown } from '@aurodesignsystem/auro-formkit/auro-dropdown/class';
|
|
48
|
+
|
|
49
|
+
// Register with a custom name if desired
|
|
50
|
+
AuroDropdown.register('custom-dropdown');</code></pre>
|
|
51
|
+
|
|
52
|
+
This will create a new custom element `<custom-dropdown>` that behaves exactly like `<auro-dropdown>`, allowing both to coexist on the same page without interfering with each other.
|
|
53
|
+
|
|
54
|
+
<pre class="language-html"><code class="language-html"><custom-dropdown id="customCommon" layout="classic" shape="classic" size="lg" aria-label="Label content for screen reader">
|
|
55
|
+
<div style="padding: var(--ds-size-150);">
|
|
56
|
+
Lorem ipsum solar
|
|
57
|
+
<br />
|
|
58
|
+
<auro-button id="customCommonButton">
|
|
59
|
+
Dismiss Dropdown
|
|
60
|
+
</auro-button>
|
|
61
|
+
</div>
|
|
62
|
+
<span slot="helpText">
|
|
63
|
+
Help text
|
|
64
|
+
</span>
|
|
65
|
+
<div slot="trigger">
|
|
66
|
+
Trigger
|
|
67
|
+
</div>
|
|
68
|
+
</custom-dropdown></code></pre>
|
|
69
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
70
|
+
</div>
|
|
71
|
+
</auro-accordion>
|
|
72
|
+
<auro-accordion class="section" id="autoAccordion">
|
|
73
|
+
<span slot="trigger">Auto Installation and Implementation</span>
|
|
74
|
+
<div class="accordion-content">
|
|
75
|
+
<p class="warning"><strong>Warning:</strong> Default registration can cause conflicts if another package registers the same tag name using a different version of the component, leading to unexpected behavior. Use custom registration to avoid this risk.</p>
|
|
76
|
+
<auro-header level="3">Install</auro-header>
|
|
77
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/templates/componentInstall.md) -->
|
|
78
|
+
<!-- The below content is automatically added from ./../../../docs/templates/componentInstall.md -->
|
|
79
|
+
|
|
80
|
+
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
81
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
|
+
<auro-header level="3">Implementation</auro-header>
|
|
83
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/defaultRegistration.md) -->
|
|
84
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/defaultRegistration.md -->
|
|
85
|
+
Import the component, then register the custom element:
|
|
86
|
+
|
|
87
|
+
<pre class="language-js"><code class="language-js">import '@aurodesignsystem/auro-formkit/auro-dropdown';</code></pre>
|
|
88
|
+
|
|
89
|
+
Then use the element in your HTML:
|
|
90
|
+
|
|
91
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown aria-label="custom label">
|
|
92
|
+
Lorem ipsum solar
|
|
93
|
+
<div slot="trigger">
|
|
94
|
+
Trigger
|
|
95
|
+
</div>
|
|
96
|
+
</auro-dropdown></code></pre>
|
|
97
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
98
|
+
</div>
|
|
99
|
+
</auro-accordion>
|
|
100
|
+
<auro-accordion class="section" id="cdnAccordion">
|
|
101
|
+
<span slot="trigger">CDN Installation</span>
|
|
102
|
+
<div class="accordion-content">
|
|
103
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/cdnRegistration.md) -->
|
|
104
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/cdnRegistration.md -->
|
|
105
|
+
The dropdown component can be loaded via CDN without a build step:
|
|
106
|
+
|
|
107
|
+
<pre class="language-html"><code class="language-html"><script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-dropdown/+esm" type="module"></script></code></pre>
|
|
108
|
+
|
|
109
|
+
Then use the element in your HTML:
|
|
110
|
+
|
|
111
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown aria-label="custom label">
|
|
112
|
+
Lorem ipsum solar
|
|
113
|
+
<div slot="trigger">
|
|
114
|
+
Trigger
|
|
115
|
+
</div>
|
|
116
|
+
</auro-dropdown></code></pre>
|
|
117
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
118
|
+
</div>
|
|
119
|
+
</auro-accordion>
|
|
120
|
+
</auro-accordion-group>
|
|
121
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
122
|
+
</section>
|
|
123
|
+
<section>
|
|
124
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/frameworks.md) -->
|
|
125
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/frameworks.md -->
|
|
126
|
+
<auro-header level="2" id="frameworks">Frameworks</auro-header>
|
|
127
|
+
<auro-accordion-group Emphasis>
|
|
128
|
+
<auro-accordion class="section" id="react">
|
|
129
|
+
<span slot="trigger">React</span>
|
|
130
|
+
<div class="accordion-content">
|
|
131
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/react.md) -->
|
|
132
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/react.md -->
|
|
133
|
+
React 19 includes <a href="https://react.dev/blog/2024/12/05/react-19#support-for-custom-elements">native support for custom elements</a>, so <code><auro-dropdown></code> works directly in JSX without any wrapper library.
|
|
134
|
+
|
|
135
|
+
<auro-header level="3" id="reactImport">Import the Component</auro-header>
|
|
136
|
+
Import and register the components at the top level of your application (e.g. in your root `main.tsx` or `App.tsx`):
|
|
137
|
+
|
|
138
|
+
<pre class="language-js"><code class="language-js">import { AuroDropdown } from '@aurodesignsystem/auro-formkit/auro-dropdown/class';
|
|
139
|
+
|
|
140
|
+
AuroDropdown.register('[custom]-dropdown');</code></pre>
|
|
141
|
+
|
|
142
|
+
<auro-header level="3" id="reactTypeScript">TypeScript Declarations</auro-header>
|
|
143
|
+
The component ships with TypeScript type definitions for the `AuroDropdown` class. However, React's JSX does not automatically map custom element tag names to their types. To get type checking for `<auro-dropdown>` in JSX, add the following declaration to a `.d.ts` file in your project:
|
|
144
|
+
|
|
145
|
+
<pre class="language-js"><code class="language-js">import type { AuroDropdown } from '@aurodesignsystem/auro-formkit/auro-dropdown/class';
|
|
146
|
+
|
|
147
|
+
declare global {
|
|
148
|
+
namespace JSX {
|
|
149
|
+
interface IntrinsicElements {
|
|
150
|
+
'[custom]-dropdown': React.HTMLAttributes<AuroDropdown> & Partial<AuroDropdown>;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}</code></pre>
|
|
154
|
+
|
|
155
|
+
<auro-header level="3" id="reactEvents">Event Handling</auro-header>
|
|
156
|
+
Auro components emit native `CustomEvent`s. Use a `ref` to attach event listeners in a `useEffect`:
|
|
157
|
+
|
|
158
|
+
<pre class="language-js"><code class="language-js">import { useRef, useEffect } from 'react';
|
|
159
|
+
|
|
160
|
+
function MyDropdown() {
|
|
161
|
+
const dropdownRef = useRef<HTMLElement>(null);
|
|
162
|
+
|
|
163
|
+
useEffect(() => {
|
|
164
|
+
const el = dropdownRef.current;
|
|
165
|
+
if (!el) return;
|
|
166
|
+
|
|
167
|
+
const handleToggle = () => {
|
|
168
|
+
console.log('Dropdown toggled, isPopoverVisible:', (el as any).isPopoverVisible);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
el.addEventListener('auroDropdown-toggled', handleToggle);
|
|
172
|
+
return () => el.removeEventListener('auroDropdown-toggled', handleToggle);
|
|
173
|
+
}, []);
|
|
174
|
+
|
|
175
|
+
return (
|
|
176
|
+
<custom-dropdown ref={dropdownRef}>
|
|
177
|
+
<span slot="trigger">Open dropdown</span>
|
|
178
|
+
<p>Dropdown content goes here</p>
|
|
179
|
+
</custom-dropdown>
|
|
180
|
+
);
|
|
181
|
+
}</code></pre>
|
|
182
|
+
|
|
183
|
+
<auro-header level="3" id="reactModuleResolution">Module Resolution</auro-header>
|
|
184
|
+
Ensure your `tsconfig.json` uses `"moduleResolution": "bundler"` so TypeScript can resolve the component's package exports:
|
|
185
|
+
|
|
186
|
+
<pre class="language-js"><code class="language-js">{
|
|
187
|
+
"compilerOptions": {
|
|
188
|
+
"moduleResolution": "bundler"
|
|
189
|
+
}
|
|
190
|
+
}</code></pre>
|
|
191
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
192
|
+
</div>
|
|
193
|
+
</auro-accordion>
|
|
194
|
+
<auro-accordion class="section" id="svelte">
|
|
195
|
+
<span slot="trigger">Svelte</span>
|
|
196
|
+
<div class="accordion-content">
|
|
197
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/svelte.md) -->
|
|
198
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/svelte.md -->
|
|
199
|
+
Svelte has <a href="https://svelte.dev/docs/svelte/custom-elements">native support for custom elements</a>, so <code><auro-dropdown></code> works directly in Svelte templates without any wrapper or configuration.
|
|
200
|
+
|
|
201
|
+
<auro-header level="3" id="svelteImport">Import the Component</auro-header>
|
|
202
|
+
Import and register the components in the `<script>` block:
|
|
203
|
+
|
|
204
|
+
<pre class="language-html"><code class="language-html"><script lang="ts">
|
|
205
|
+
import { AuroDropdown } from '@aurodesignsystem/auro-formkit/auro-dropdown/class';
|
|
206
|
+
|
|
207
|
+
AuroDropdown.register('[custom]-dropdown');
|
|
208
|
+
</script></code></pre>
|
|
209
|
+
|
|
210
|
+
<auro-header level="3" id="svelteUsage">Basic Usage</auro-header>
|
|
211
|
+
Use `<auro-dropdown>` directly in your Svelte template:
|
|
212
|
+
|
|
213
|
+
<pre class="language-html"><code class="language-html"><script lang="ts">
|
|
214
|
+
import { AuroDropdown } from '@aurodesignsystem/auro-formkit/auro-dropdown/class';
|
|
215
|
+
|
|
216
|
+
AuroDropdown.register('[custom]-dropdown');
|
|
217
|
+
</script>
|
|
218
|
+
<custom-dropdown>
|
|
219
|
+
<span slot="trigger">Open dropdown</span>
|
|
220
|
+
<p>Dropdown content goes here</p>
|
|
221
|
+
</custom-dropdown></code></pre>
|
|
222
|
+
|
|
223
|
+
<auro-header level="3" id="svelteTypeScript">TypeScript Declarations</auro-header>
|
|
224
|
+
Svelte does not automatically know about custom element attributes. To get autocomplete and type checking for `<auro-dropdown>` props in templates, add the following to a `.d.ts` file in your project (e.g. `src/auro-elements.d.ts`):
|
|
225
|
+
|
|
226
|
+
<pre class="language-js"><code class="language-js">import type { AuroDropdown } from '@aurodesignsystem/auro-formkit/auro-dropdown/class';
|
|
227
|
+
|
|
228
|
+
declare namespace svelteHTML {
|
|
229
|
+
interface IntrinsicElements {
|
|
230
|
+
'[custom]-dropdown': Partial<AuroDropdown> & svelteHTML.HTMLAttributes<AuroDropdown>;
|
|
231
|
+
}
|
|
232
|
+
}</code></pre>
|
|
233
|
+
|
|
234
|
+
This enables prop hinting for attributes like `disabled`, `chevron`, and others directly in Svelte templates.
|
|
235
|
+
|
|
236
|
+
<auro-header level="3" id="svelteEvents">Event Handling</auro-header>
|
|
237
|
+
Auro components emit native `CustomEvent`s. Listen for the `auroDropdown-toggled` event on the element:
|
|
238
|
+
|
|
239
|
+
<pre class="language-html"><code class="language-html"><script lang="ts">
|
|
240
|
+
let isOpen = $state(false);
|
|
241
|
+
|
|
242
|
+
function handleToggle(e: Event) {
|
|
243
|
+
isOpen = (e.target as HTMLElement & { isPopoverVisible: boolean }).isPopoverVisible;
|
|
244
|
+
}
|
|
245
|
+
</script>
|
|
246
|
+
<custom-dropdown on:auroDropdown-toggled={handleToggle}>
|
|
247
|
+
<span slot="trigger">Open dropdown</span>
|
|
248
|
+
<p>Dropdown content goes here</p>
|
|
249
|
+
</custom-dropdown>
|
|
250
|
+
<p>Dropdown is {isOpen ? 'open' : 'closed'}</p></code></pre>
|
|
251
|
+
|
|
252
|
+
<auro-header level="3" id="svelteModuleResolution">Module Resolution</auro-header>
|
|
253
|
+
Ensure your `tsconfig.json` uses `"moduleResolution": "bundler"` so TypeScript can resolve the component's package exports:
|
|
254
|
+
|
|
255
|
+
<pre class="language-js"><code class="language-js">{
|
|
256
|
+
"compilerOptions": {
|
|
257
|
+
"moduleResolution": "bundler"
|
|
258
|
+
}
|
|
259
|
+
}</code></pre>
|
|
260
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
261
|
+
</div>
|
|
262
|
+
</auro-accordion>
|
|
263
|
+
</auro-accordion-group>
|
|
264
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
265
|
+
</section>
|
|
266
|
+
<section>
|
|
267
|
+
<auro-header level="2" id="minimalConfig">Minimal Configuration</auro-header>
|
|
268
|
+
<p>The most basic use of <code>auro-dropdown</code> requires content in the default slot and a trigger element in the <code>trigger</code> slot. An accessible label must also be provided via <code>aria-label</code>, <code>aria-labelledby</code>, or the <code>label</code> slot.</p>
|
|
269
|
+
<div class="exampleWrapper">
|
|
270
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
271
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
272
|
+
<auro-dropdown aria-label="custom label">
|
|
273
|
+
Lorem ipsum solar
|
|
274
|
+
<div slot="trigger">
|
|
275
|
+
Trigger
|
|
276
|
+
</div>
|
|
277
|
+
</auro-dropdown>
|
|
278
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
279
|
+
</div>
|
|
280
|
+
<auro-accordion alignRight>
|
|
281
|
+
<span slot="trigger">See code</span>
|
|
282
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
283
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
284
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown aria-label="custom label">
|
|
285
|
+
Lorem ipsum solar
|
|
286
|
+
<div slot="trigger">
|
|
287
|
+
Trigger
|
|
288
|
+
</div>
|
|
289
|
+
</auro-dropdown></code></pre>
|
|
290
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
291
|
+
</auro-accordion>
|
|
292
|
+
</section>
|
|
293
|
+
<section>
|
|
294
|
+
<auro-header level="2" id="slots">Slots</auro-header>
|
|
295
|
+
<auro-header level="3" id="slotTrigger">Trigger</auro-header>
|
|
296
|
+
<p>The <code>trigger</code> slot defines the clickable element that toggles the dropdown bib. Any valid HTML can be placed in this slot.</p>
|
|
297
|
+
<div class="exampleWrapper">
|
|
298
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-button.html) -->
|
|
299
|
+
<!-- The below content is automatically added from ./../apiExamples/basic-button.html -->
|
|
300
|
+
<auro-dropdown aria-label="custom label">
|
|
301
|
+
Lorem ipsum solar
|
|
302
|
+
<div slot="trigger">
|
|
303
|
+
<auro-button slot="trigger">
|
|
304
|
+
Dropdown
|
|
305
|
+
</auro-button>
|
|
306
|
+
</div>
|
|
307
|
+
</auro-dropdown>
|
|
308
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
309
|
+
</div>
|
|
310
|
+
<auro-accordion alignRight>
|
|
311
|
+
<span slot="trigger">See code</span>
|
|
312
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-button.html) -->
|
|
313
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic-button.html -->
|
|
314
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown aria-label="custom label">
|
|
315
|
+
Lorem ipsum solar
|
|
316
|
+
<div slot="trigger">
|
|
317
|
+
<auro-button slot="trigger">
|
|
318
|
+
Dropdown
|
|
319
|
+
</auro-button>
|
|
320
|
+
</div>
|
|
321
|
+
</auro-dropdown></code></pre>
|
|
322
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
323
|
+
</auro-accordion>
|
|
324
|
+
<auro-header level="3" id="slotHelpText">Help Text</auro-header>
|
|
325
|
+
<p>Content defined in the <code>helpText</code> slot will be rendered left aligned below the trigger.</p>
|
|
326
|
+
<div class="exampleWrapper">
|
|
327
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/help-text.html) -->
|
|
328
|
+
<!-- The below content is automatically added from ./../apiExamples/help-text.html -->
|
|
329
|
+
<auro-dropdown
|
|
330
|
+
aria-label="custom label"
|
|
331
|
+
inset
|
|
332
|
+
bordered
|
|
333
|
+
rounded>
|
|
334
|
+
Lorem ipsum solar
|
|
335
|
+
<span slot="helpText">
|
|
336
|
+
Helper text
|
|
337
|
+
</span>
|
|
338
|
+
<div slot="trigger">
|
|
339
|
+
Trigger
|
|
340
|
+
</div>
|
|
341
|
+
</auro-dropdown>
|
|
342
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
343
|
+
</div>
|
|
344
|
+
<auro-accordion alignRight>
|
|
345
|
+
<span slot="trigger">See code</span>
|
|
346
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/help-text.html) -->
|
|
347
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/help-text.html -->
|
|
348
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown
|
|
349
|
+
aria-label="custom label"
|
|
350
|
+
inset
|
|
351
|
+
bordered
|
|
352
|
+
rounded>
|
|
353
|
+
Lorem ipsum solar
|
|
354
|
+
<span slot="helpText">
|
|
355
|
+
Helper text
|
|
356
|
+
</span>
|
|
357
|
+
<div slot="trigger">
|
|
358
|
+
Trigger
|
|
359
|
+
</div>
|
|
360
|
+
</auro-dropdown></code></pre>
|
|
361
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
362
|
+
</auro-accordion>
|
|
363
|
+
</section>
|
|
364
|
+
<section>
|
|
365
|
+
<auro-header level="2" id="functions">Functions</auro-header>
|
|
366
|
+
<auro-header level="3" id="fnShow">show()</auro-header>
|
|
367
|
+
<p>Use the <code>show()</code> method to programmatically open the dropdown.</p>
|
|
368
|
+
<div class="exampleWrapper">
|
|
369
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmatically-show.html) -->
|
|
370
|
+
<!-- The below content is automatically added from ./../apiExamples/programmatically-show.html -->
|
|
371
|
+
<auro-input id="showExampleTriggerInput" required>
|
|
372
|
+
<span slot="label">Enter a value to show the dropdown</span>
|
|
373
|
+
</auro-input>
|
|
374
|
+
<br />
|
|
375
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
376
|
+
<p>
|
|
377
|
+
Lorem ipsum solar
|
|
378
|
+
</p>
|
|
379
|
+
<span slot="trigger">Trigger Label</span>
|
|
380
|
+
</auro-dropdown>
|
|
381
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
382
|
+
</div>
|
|
383
|
+
<auro-accordion alignRight>
|
|
384
|
+
<span slot="trigger">See code</span>
|
|
385
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-show.html) -->
|
|
386
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/programmatically-show.html -->
|
|
387
|
+
<pre class="language-html"><code class="language-html"><auro-input id="showExampleTriggerInput" required>
|
|
388
|
+
<span slot="label">Enter a value to show the dropdown</span>
|
|
389
|
+
</auro-input>
|
|
390
|
+
<br />
|
|
391
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
392
|
+
<p>
|
|
393
|
+
Lorem ipsum solar
|
|
394
|
+
</p>
|
|
395
|
+
<span slot="trigger">Trigger Label</span>
|
|
396
|
+
</auro-dropdown></code></pre>
|
|
397
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
398
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-show.js) -->
|
|
399
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/programmatically-show.js -->
|
|
400
|
+
<pre class="language-js"><code class="language-js">export function showExample() {
|
|
401
|
+
const triggerInput = document.querySelector('#showExampleTriggerInput');
|
|
402
|
+
const dropdownElem = document.querySelector('#showMethodExample');
|
|
403
|
+
|
|
404
|
+
triggerInput?.addEventListener('keydown', () => {
|
|
405
|
+
dropdownElem?.show();
|
|
406
|
+
});
|
|
407
|
+
}</code></pre>
|
|
408
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
409
|
+
</auro-accordion>
|
|
410
|
+
<auro-header level="3" id="fnHide">hide()</auro-header>
|
|
411
|
+
<p>Use the <code>hide()</code> method to programmatically close the dropdown.</p>
|
|
412
|
+
<div class="exampleWrapper">
|
|
413
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmatically-hide.html) -->
|
|
414
|
+
<!-- The below content is automatically added from ./../apiExamples/programmatically-hide.html -->
|
|
415
|
+
<auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
416
|
+
<p>
|
|
417
|
+
Lorem ipsum solar
|
|
418
|
+
</p>
|
|
419
|
+
<div style="padding: var(--ds-size-150);">
|
|
420
|
+
<auro-button id="hideExampleBtn">
|
|
421
|
+
Hide Dropdown
|
|
422
|
+
</auro-button>
|
|
423
|
+
</div>
|
|
424
|
+
<span slot="trigger">
|
|
425
|
+
Trigger
|
|
426
|
+
</span>
|
|
427
|
+
</auro-dropdown>
|
|
428
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
429
|
+
</div>
|
|
430
|
+
<auro-accordion alignRight>
|
|
431
|
+
<span slot="trigger">See code</span>
|
|
432
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-hide.html) -->
|
|
433
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/programmatically-hide.html -->
|
|
434
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
435
|
+
<p>
|
|
436
|
+
Lorem ipsum solar
|
|
437
|
+
</p>
|
|
438
|
+
<div style="padding: var(--ds-size-150);">
|
|
439
|
+
<auro-button id="hideExampleBtn">
|
|
440
|
+
Hide Dropdown
|
|
441
|
+
</auro-button>
|
|
442
|
+
</div>
|
|
443
|
+
<span slot="trigger">
|
|
444
|
+
Trigger
|
|
445
|
+
</span>
|
|
446
|
+
</auro-dropdown></code></pre>
|
|
447
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
448
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-hide.js) -->
|
|
449
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/programmatically-hide.js -->
|
|
450
|
+
<pre class="language-js"><code class="language-js">export function hideExample() {
|
|
451
|
+
const btn = document.querySelector('#hideExampleBtn');
|
|
452
|
+
const dropdown = document.querySelector('#hideExample');
|
|
453
|
+
|
|
454
|
+
btn?.addEventListener('click', () => {
|
|
455
|
+
dropdown?.hide();
|
|
456
|
+
});
|
|
457
|
+
}</code></pre>
|
|
458
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
459
|
+
</auro-accordion>
|
|
460
|
+
</section>
|
|
461
|
+
</div>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
19
|
<title>Auro Web Component Demo | auro-dropdown</title>
|
|
20
20
|
|
|
21
|
-
<!--
|
|
22
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/
|
|
21
|
+
<!-- highlight.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github.min.css"/>
|
|
23
23
|
|
|
24
24
|
<!-- Legacy reference is still needed to support auro-dropdown's use of legacy token values at this time -->
|
|
25
25
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
@@ -31,33 +31,24 @@
|
|
|
31
31
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
32
|
|
|
33
33
|
<!-- Demo Specific Styles -->
|
|
34
|
-
<link rel="stylesheet" type="text/css" href="
|
|
35
|
-
|
|
36
|
-
</head>
|
|
34
|
+
<link rel="stylesheet" type="text/css" href="./styles.min.css" />
|
|
35
|
+
</head>
|
|
37
36
|
<body class="auro-markdown">
|
|
38
37
|
<main></main>
|
|
39
38
|
|
|
40
39
|
<script type="module">
|
|
41
|
-
import '
|
|
42
|
-
|
|
43
|
-
fetch('./index.md')
|
|
44
|
-
.then((response) => response.text())
|
|
45
|
-
.then((text) => {
|
|
46
|
-
const rawHtml = marked.parse(text);
|
|
47
|
-
document.querySelector('main').innerHTML = rawHtml;
|
|
48
|
-
Prism.highlightAll();
|
|
49
|
-
})
|
|
40
|
+
import { renderPage } from './demo-support.min.js';
|
|
41
|
+
await renderPage('./index.md');
|
|
50
42
|
</script>
|
|
51
|
-
<script type="module">
|
|
52
|
-
import { initExamples } from "./index.min.js";
|
|
53
43
|
|
|
54
|
-
window.addEventListener('load', () => {
|
|
55
|
-
initExamples();
|
|
56
|
-
});
|
|
57
|
-
</script>
|
|
58
44
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
59
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
60
45
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
46
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-nav@latest/+esm" type="module"></script>
|
|
47
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
|
|
48
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
49
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
61
50
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
51
|
+
|
|
52
|
+
<script src="./index.min.js" data-demo-script="true" type="module"></script>
|
|
62
53
|
</body>
|
|
63
54
|
</html>
|