el-drawer

Create slide-out drawer panels with configurable attributes, events, and slots in Vue 3 Element Plus apps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drawer provides a slide-out panel UI to display contextual content without requiring navigation away from the page, enabling focused workflows while preserving context.

Core Features & Use Cases

  • Multiple directions: left, right, top, and bottom drawers to fit various layouts.
  • Resizable and customizable: adjust width/height, header/footer, and modal vs modeless experiences.
  • Nested drawers and composition: support for layered drawers with append-to-body for better stacking.
  • Use Case: present forms, settings panels, or side navigation in a non-disruptive manner.

Quick Start

Open a drawer by binding a boolean to v-model and toggling it to true to display content.

Frequently Asked Questions about el-drawer

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

FAQPage Schema
How do I create a slide-out side panel in Vue 3 using Element Plus?

To create a slide-out side panel in Vue 3, bind a boolean value to the drawer's v-model attribute and toggle it to true. This displays contextual content alongside your page without requiring navigation away from the main view.

Can I nest multiple drawers and control their stacking order in Vue 3?

Yes, you can nest multiple drawers by using the append-to-body attribute. This ensures layered drawers stack correctly in the DOM, allowing you to build complex, contextual UI workflows without breaking the visual layout.

Does the Element Plus drawer support modal and modeless configurations?

Yes, the drawer supports both modal and modeless experiences through the modal attribute. You can control background interaction using close-on-click-modal and modal-penetrable, allowing flexible contextual menu and form setups.

How do I customize the header and footer of an Element Plus drawer component?

You can customize the drawer's header and footer using the header and footer slots. Additionally, attributes like header-class, body-class, and footer-class allow you to apply specific styling to different sections of the side panel.

What directions and resizing options are available for Vue 3 drawer side panels?

Drawers support left, right, top, and bottom directions to fit various layouts. The resizable attribute allows users to dynamically adjust the width or height of the slide-out panel, which triggers resize-start, resize, and resize-end events.

How do I execute custom logic before closing a Vue 3 drawer side panel?

Use the before-close attribute to execute custom logic before the drawer closes. This allows you to intercept the closing action, validate form data, or trigger cleanup routines before the panel is dismissed from the screen.