You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- The below content is automatically added from ./docs/partials/description.md -->
24
+
`<auro-backtotop>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose of providing a quick and accessible means to jump back to the top of a long content page.
24
25
26
+
The component will be hidden while the page Y scroll position is at the top. When scroll down begins the button will display in the bottom right corner of the page. While scrolling down the button will display only an arrow up icon.
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
30
+
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
[](https://www.npmjs.com/package/@aurodesignsystem/auro-backtotop)
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
85
+
86
+
```html
87
+
<auro-backtotop>Back to top</auro-backtotop>
88
+
```
89
+
<!-- AURO-GENERATED-CONTENT:END -->
90
+
56
91
## Custom Component Registration for Version Management
57
92
58
93
There are two key parts to every Auro component: the <ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition.
@@ -65,18 +100,31 @@ However, if you need to load multiple versions of the same component on a single
65
100
You can do this by importing only the component class and using the `register(name)` method with a unique name:
This will create a new custom element `<custom-backtotop>` that behaves exactly like `<auro-backtotop>`, allowing both to coexist on the same page without interfering with each other.
0 commit comments