Naive UI
Naive UI is a Vue 3 component library with a rich component set and strong TypeScript support.
Features
- 🎨 customizable theme:complete theme system
- 📦 Tree Shaking:load on demand,small size
- 🔧 TypeScript:complete type definitions
- 🌙 Dark Mode: built-in dark theme support
- 🎯 No extra UI dependencies: no third-party UI framework dependency
- 📱 Responsive: mobile-friendly layout support
Installation
Usage
global full import
On-demand import (recommended)
Auto Import
Use unplugin-auto-import and unplugin-vue-components:
Config Provider
Theme Configuration
Custom Theme
Dark Mode
Common Components
Select Select
Table Table
Card Card
Modal Modal
Global Notifications
Message Message
Dialog Dialog
Notification Notification
Loading Bar Loading Bar
Layout Components
Layout
Space Space
Grid Grid
Icons
Naive UI recommends using xicons:
Best Practices
- Use on-demand import with auto-import plugins.
- Keep the theme consistent across the app.
- Use global configuration through
ConfigProvider.
- Take advantage of TypeScript support.
- Use the grid system for responsive design.
- Configure locale settings for internationalization.
References
Last modified on April 17, 2026