el-backtop

Provide scroll-to-top controls for long pages with configurable position.

21|2|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-backtop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: el-backtop
Source: https://github.com/jiaiyan/element-plus-skills/tree/main/components/el-backtop
Command: npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-backtop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Backtop provides a quick, accessible way for users to return to the top of long pages, reducing scrolling effort and improving navigation.

Core Features & Use Cases

  • Floating back-to-top trigger that appears after scrolling a configurable distance.
  • Customizable position with bottom and right offsets and a targeted scroll container.
  • Simple integration with the el-backtop component in Vue 3 and Element Plus.

Quick Start

Place the el-backtop component in your page and test scrolling to see the button appear.

Frequently Asked Questions about el-backtop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a scroll-to-top button for long pages in Vue 3?

To add a scroll-to-top button for long pages in Vue 3, you can use the el-backtop component from Element Plus. It provides a floating trigger that appears after scrolling a configurable distance to return users to the top.

What is a back-to-top button used for in web applications?

A back-to-top button is used in web applications to provide a quick, accessible way for users to return to the top of long pages. It reduces scrolling effort and improves navigation on dashboards, article readers, and documentation pages.

Can I customize the position and visibility of a back-to-top trigger?

Yes, you can customize the position and visibility of a back-to-top trigger. The el-backtop API exposes attributes for bottom and right offsets, a targeted scroll container, and a visibility-height threshold to control when the button appears.

Does the el-backtop component work with a specific scroll container?

Yes, the el-backtop component works with a specific scroll container. You can configure the target attribute to specify which scrollable element the back-to-top functionality should monitor and control.

How do I configure the visibility-height for a floating back-to-top control?

To configure the visibility-height for a floating back-to-top control, set the corresponding API attribute on the el-backtop component. This determines the exact vertical scroll distance a user must pass before the button appears.