node/@patternfly/react-core/src/components/BackToTop/examples/BackToTop.md
raw| 1 | --- |
| 2 | id: Back to top |
| 3 | section: components |
| 4 | cssPrefix: pf-v6-c-back-to-top |
| 5 | propComponents: ['BackToTop'] |
| 6 | --- |
| 7 | |
| 8 | import './BackToTop.css' |
| 9 | |
| 10 | Below example does not demonstrate functionality see React demos for a full demonstration. |
| 11 | |
| 12 | Back to top only shows after overflowing element has been scrolled 400px. |
| 13 | |
| 14 | ## Examples |
| 15 | |
| 16 | ### Basic |
| 17 | |
| 18 | ```ts file="./BackToTopBasic.tsx" |
| 19 | ``` |