n-input

Handle text, password, and textarea inputs in Vue 3 with Naive UI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Input handling in forms can be repetitive and error prone, especially when supporting text, password, and textarea modes with consistent validation and states.

Core Features & Use Cases

  • Text, password, and textarea support with rich feature set for validation, loading, prefix/suffix, and status indicators.
  • Unified API surface using v-model:value to simplify binding across multiple input types.
  • Real-world use cases include login forms, search bars, data-entry forms, and paired inputs.

Quick Start

Bind an n-input with v-model:value to capture text, password, or textarea input in a form.

Frequently Asked Questions about n-input

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

FAQPage Schema
How do I handle form input validation for text and password fields in Vue 3?

To handle form input validation for text and password fields in Vue 3, bind your elements using v-model:value to capture data and apply consistent validation states. This reduces errors across login and data-entry screens.

What is the best way to build a textarea with autosize support in a Naive UI application?

The best way to build a textarea with autosize support in a Naive UI application is to use a unified input component API that supports v-model:value, autosize, and various status indicators. This ensures consistent input behavior across search interfaces and forms.

Can I use Naive UI input components for paired inputs and loading states?

Yes, you can use Naive UI input components for paired inputs and loading states. The unified API surface supports pair inputs, loading indicators, and events, making it suitable for complex data-entry forms requiring real-time feedback.

How do I implement prefix and suffix slots in a Vue 3 search bar component?

To implement prefix and suffix slots in a Vue 3 search bar component, utilize an input field API that supports customizable slots alongside v-model:value binding. This allows you to add icons or text elements before or after the input text.

Does the Naive UI input component support different sizes and status indicators?

Yes, the Naive UI input component supports different sizes and status indicators. You can configure size, status, and loading properties directly within the unified API surface, ensuring flexible input fields adapting to design requirements.