UI Components

Scroll To Top Widget

A floating button that appears after scrolling and smoothly scrolls to the top of the page when clicked. Configurable position, size, and shape.

Feature Disabled

The scrollNavigation feature is currently disabled. Enable it in params.php to see live demos.

Default (Bottom Right)

Standard scroll-to-top button in the bottom-right corner. Scroll down to see it appear.

This widget appears only after scrolling down the page.
Code
<?php echo ScrollToTopWidget::widget(); ?>
Live Demo

Enable the feature to see live demo.

Large Rounded

Larger button with rounded corners.

Preview shown statically. In production, appears on scroll.
Code
<?php echo ScrollToTopWidget::widget([ 'size' => 'large', 'shape' => 'rounded', ]); ?>
Live Demo

Enable the feature to see live demo.

Configuration Options

OptionTypeDefaultDescription
positionstringbottom-rightPosition: bottom-right, bottom-left, top-right, top-left
sizestringmediumSize: small, medium, large
shapestringcircleShape: circle, rounded, square
iconstringfas fa-arrow-upFontAwesome icon class
forceShowboolfalseShow even if disabled in config