All skills
Skillintermediate
Component specification
A number input component allowing users to enter and adjust numeric values. Supports value constraints, decimal precision, and increment/decrement controls.
Claude Code Knowledge Pack7/10/2026
Overview
Component specification
A number input component allowing users to enter and adjust numeric values. Supports value constraints, decimal precision, and increment/decrement controls.
- Component Name: N8nInputNumber
- Element+ Component: ElInputNumber
- Reka UI Component: NumberField
- Nuxt UI Component: InputNumber
Public API Definition
Props
modelValue?: number | null- The current numeric value. Use withv-modelfor two-way binding.size?: 'mini' | 'small' | 'medium' | 'large' | 'xlarge'- Size variant. Default:'medium'min?: number- Minimum allowed value. Default:-Infinitymax?: number- Maximum allowed value. Default:Infinitystep?: number- Increment/decrement step amount. Default:1precision?: number- Number of decimal places. Maps to Reka UIformatOptions.maximumFractionDigits.controls?: boolean- Whether to show increment/decrement buttons. Default:falsecontrolsPosition?: 'both' | 'right'- Position of control buttons.'both'places −/+ on left/right sides.'right'places stacked up/down arrows on the right. Default:'right'disabled?: boolean- Disables the input. Default:falseplaceholder?: string- Placeholder text when empty.
Events
update:modelValue- Emitted when value changes. Payload:number | nullfocus- Emitted when input gains focus. Payload:FocusEventblur- Emitted when input loses focus. Payload:FocusEvent
Slots
increment- Custom content for increment button (whencontrolsistrue).decrement- Custom content for decrement button (whencontrolsistrue).
Template usage example
Basic number input:
<script setup lang="ts">
const value = ref(0)
</script>
<template>
</template>
Basic usage (controls hidden by default):
With step and precision:
Disabled state:
Size variants:
With controls and custom buttons:
<template #decrement>
</template>
<template #increment>
</template>