@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
16 lines (11 loc) • 412 B
Markdown
id: Back to top
section: components
import { useState } from 'react';
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
## Demos
### Using name selector
Note that `tabIndex={0}` is added to the scrolling `PageSection` of the page to allow keyboard users the ability to focus and scroll.
```js isFullscreen file="./examples/BackToTop/BackToTopNameDemo.tsx"
```