element-plus-reference

Provides Element Plus component usage, theming, and integration guidance for Vue 3 projects.

3|1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/ZHLX2005/sl --skill element-plus-reference-zhlx2005
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: element-plus-reference
Source: https://github.com/ZHLX2005/sl/tree/main/skills/ui-component-library/references/element-plus
Command: npx skills add https://github.com/ZHLX2005/sl --skill element-plus-reference-zhlx2005

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers building Vue 3 admin interfaces often need quick, accurate answers about Element Plus components, theming, auto-import setup, and common integration pitfalls without digging through the full official documentation. ## Core Features & Use Cases - Component Usage Guidance: Covers el-form, el-table, el-dialog, el-date-picker, el-select, el-upload and more with ready-to-use Vue 3 code examples and TypeScript types. - Setup & Integration: Explains full import vs. on-demand auto-import via unplugin-vue-components, theme customization with CSS variables or SCSS, dark mode, and i18n with 70+ locale packs. - Troubleshooting: Answers common issues like styles not applying, form validation failing, bundle size reduction, and Element UI (Vue 2) migration differences. - Use Case: When building a Vue 3 admin dashboard and you need to implement a validated form with date range pickers and a data table, this reference provides the exact component APIs, validation patterns, and import configuration. ## Quick Start Ask how to use a specific Element Plus component or solve an integration issue in your Vue 3 project, such as setting up form validation with el-form.

Frequently Asked Questions about element-plus-reference

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

FAQPage Schema
How do I set up on-demand auto-import for Element Plus in Vite?

Install unplugin-vue-components and unplugin-auto-import, then configure both plugins in vite.config.ts with ElementPlusResolver. After that, el-* components can be used directly in templates without manual imports, and styles are handled automatically.

How do I validate forms with el-form in Element Plus?

Bind :model and :rules on el-form, set prop on each el-form-item matching the model field names, then call formRef.value.validate() to run validation. The callback receives a valid flag and the failed fields for error handling.

What is the difference between Element Plus and Element UI?

Element Plus supports only Vue 3 while Element UI supports only Vue 2. Their APIs are highly similar but not identical, with differences in icon usage and slot naming, so Vue 2 projects must stay on Element UI.

Why are Element Plus styles not applying in my project?

With full import you must explicitly import 'element-plus/dist/index.css' in main.ts. With on-demand auto-import, the unplugin-vue-components resolver handles style injection automatically, so missing styles usually indicate misconfigured resolvers.

How do I customize the Element Plus theme colors?

Override CSS variables like --el-color-primary on :root for simple changes, or use SCSS with @forward on the theme-chalk var.scss file to override $colors and $border-radius at build time. Dark mode is enabled by importing the dark css-vars file and adding the dark class.

Can Element Plus be used in React or Vue 2 projects?

No, Element Plus only supports Vue 3 (version ^3.3.7) with Node >= 20. React projects should use alternatives like antd, and Vue 2 projects should use the original Element UI library instead.