Dasar UI Library

Number Input

A numeric input field with built-in increment and decrement stepper controls.
Basic Usage

Bound Value: 1

Appearance & Sizes
Min, Max & Step Limits
Validation & States
Value exceeds available stock.
Out of stock.
Prefix & Action Slots
$
MINUS
PLUS

API Reference

Property
Type
Default
Description
valuenumber | null null The current numeric value.
appearance'outline' | 'filled' 'outline' Visual container style.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' 'md' Sizing scale.
radiusScaleAttributeType 'md' Border radius.
stepnumber 1 Increment/decrement value step.
min / maxnumber undefined Constraint limits.
labelstring undefined Text label.
hintstring undefined Helper text.
placeholderstring '' Placeholder string.
full-widthboolean false Forces full width.
disabledboolean false Disables input and actions.
errorboolean false Error styling.
(valueChange)EventEmitter<number | null> - Emitted on change.
(increment) / (decrement)EventEmitter<number> - Action button events.
[prefix]Content Slot - Custom prefix content.
[increment-slot] / [decrement-slot]Content Slot - Custom action button templates.