PatternFly

Back to top

The back to top component is a shortcut that allows users to quickly navigate to the top of a lengthy content page.

Examples

Basic

Documentation

Usage

Class
Applied to
Outcome
.pf-v5-c-back-to-top
<div>
Initiates the back to top component. Required
.pf-m-hidden
.pf-v5-c-back-to-top
Modifies the component to be hidden.

CSS variables

Expand or collapse columnSelectorVariableValue
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--Right
3rem
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--Bottom
1.5rem
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--md--Bottom
3rem
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--c-button--FontSize
0.75rem
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--c-button--BorderRadius
30em
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--c-button--PaddingTop
0.25rem
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--c-button--PaddingRight
0.5rem
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--c-button--PaddingBottom
0.25rem
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--c-button--PaddingLeft
0.5rem
.pf-v5-c-back-to-top--pf-v5-c-back-to-top--c-button--BoxShadow
0 0.75rem 0.75rem -0.5rem rgba(3, 3, 3, 0.18)
.pf-v5-c-back-to-top .pf-v5-c-button--pf-v5-c-button--FontSize
0.75rem
.pf-v5-c-back-to-top .pf-v5-c-button--pf-v5-c-button--BorderRadius
30em
.pf-v5-c-back-to-top .pf-v5-c-button--pf-v5-c-button--PaddingTop
0.25rem
.pf-v5-c-back-to-top .pf-v5-c-button--pf-v5-c-button--PaddingRight
0.5rem
.pf-v5-c-back-to-top .pf-v5-c-button--pf-v5-c-button--PaddingBottom
0.25rem
.pf-v5-c-back-to-top .pf-v5-c-button--pf-v5-c-button--PaddingLeft
0.5rem

View source on GitHub