n-button

Render Naive UI button components with types, sizes, and states on Vue 3.

8|3|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/jiaiyan/naive-ui-skills --skill n-button
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n-button
Source: https://github.com/jiaiyan/naive-ui-skills/tree/main/components/n-button
Command: npx skills add https://github.com/jiaiyan/naive-ui-skills --skill n-button

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Button components provide ready-made, accessible controls to unify interactions across an app, reducing development time and keeping UI consistent.

Core Features & Use Cases

  • Multiple types, sizes, and style variants (default, primary, info, success, warning, error) for use in forms, dialogs, toolbars, and menus.
  • Button groups, custom colors, and tag flexibility to align with branding and layout requirements.
  • Accessibility considerations including focus management, ARIA labeling, and support for icon-only buttons.

Quick Start

Render a basic n-button and adjust type, size, and state to fit your UI.

Frequently Asked Questions about n-button

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

FAQPage Schema
How do I create accessible buttons in Vue 3 using Naive UI?

Accessible buttons in Vue 3 use Naive UI to render controls with built-in focus management, ARIA labeling, and icon-only support, ensuring consistent interactions across web apps.

What button variants and states are available for Naive UI components?

Naive UI button variants include default, primary, info, success, warning, and error types, supporting states like disabled and loading with adjustable sizes and custom colors.

Can I use button groups for form controls and dialog actions in Vue 3?

Yes, you can group buttons for form controls, dialog actions, and toolbars in Vue 3, applying props for tag flexibility and layout alignment to meet branding requirements.

How does focus management work for icon-only buttons in an accessible UI?

Focus management for icon-only buttons relies on ARIA labeling to ensure screen readers interpret the control, providing accessible interactions without visible text in your UI.

Does the Naive UI button component support custom colors and loading states?

Yes, the Naive UI button component supports custom colors and loading states, specifying props to handle interactions, content slots, and icon rendering for versatile web applications.