el-input-number

Configure numeric inputs with increment/decrement controls in Vue applications using Element Plus.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

InputNumber provides a convenient way to enter and control numeric values, reducing user error and UI clutter.

Core Features & Use Cases

  • Supports min, max, and step to enforce valid numeric ranges.
  • Includes step-strictly, precision, and size options for precise, accessible inputs.
  • Use cases: quantity selectors, numeric settings, form validation, and precise adjustments.

Quick Start

Bind the component to a numeric value with v-model and set min, max, and step to define the valid range.

Frequently Asked Questions about el-input-number

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

FAQPage Schema
How do I add increment and decrement step controls to a numeric input in Vue?

Numeric input step controls in Vue are added using Element Plus with v-model binding for reactivity. You configure increment and decrement behaviors by setting the step property to define the valid range adjustments.

Can I enforce a strict step interval and decimal precision in Element Plus numeric inputs?

Element Plus numeric inputs enforce strict intervals using the step-strictly property and manage decimal places via the precision option. These settings ensure users can only enter or adjust values matching the configured step increments.

What is the best way to restrict a numeric input range for form validation in Vue?

The best way to restrict numeric input ranges for Vue form validation is applying the min and max properties. This enforces valid numeric boundaries, reducing user error and UI clutter in forms and settings.

Does Element Plus support customizing the controls position for numeric inputs?

Element Plus supports customizing numeric input controls position through the controls-position property. This allows you to adjust the increment and decrement button layout for accessible, precise adjustments across different application settings.

When should I use a numeric input with step controls instead of a standard text field?

Use a numeric input with step controls instead of a standard text field for quantity selectors, price inputs, and ranged configurations. It reduces user error by offering accessible increment and decrement controls with enforced validation.