el-scrollbar

Configure el-scrollbar scrollbars with height, methods, and end-reached events.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scrollbar components replace the native browser scrollbars with customizable alternatives, enhancing visuals and control across platforms.

Core Features & Use Cases

  • Custom scrollbar styling for scroll areas
  • Horizontal and vertical scrolling support, infinite scrolling, and always-visible options
  • Programmatic control and events such as end-reached to react to scroll limits

Quick Start

Configure an el-scrollbar for a 400px container and demonstrate basic scrolling behavior.

Frequently Asked Questions about el-scrollbar

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

FAQPage Schema
How do I replace native scrollbars with custom styling in Vue applications?

To replace native scrollbars in Vue, configure the el-scrollbar component on fixed-height panels and scroll areas, applying custom styling to override default browser scrollbars with smooth UI alternatives.

How do I implement infinite scroll in Element Plus when users reach the bottom of a list?

Implement infinite scroll in Element Plus by configuring el-scrollbar and listening to its end-reached event. This event triggers when users scroll to the bottom, allowing you to load more data dynamically.

Can I programmatically control scroll position in an Element Plus scroll area?

Yes, you can programmatically control scroll position in Element Plus by exposing el-scrollbar methods like scrollTo, setScrollTop, and setScrollLeft to navigate to specific coordinates within the container.

Does el-scrollbar work for both horizontal and vertical scrolling in fixed-height panels?

Yes, el-scrollbar works for both horizontal and vertical scrolling in fixed-height panels. By configuring height or max-height, it applies custom scrollbar styling to improve usability across long lists and scroll areas.

What is the best way to style scrollbars across different platforms in a Vue UI?

The best way to style scrollbars across different platforms in a Vue UI is using a customizable scrollbar component like el-scrollbar, which ensures consistent visuals and control by replacing inconsistent native browser scrollbars.