Svelte UI

Specialized Input Components

Pre-built input components for common patterns with built-in functionality.

Variants

All four wrappers forward variant / size / borderless to their underlying Input.

Sizes

SearchInput

Input component with search icon and clear functionality.

Input

Value

EmailInput

Input component with email validation and envelope icon.

Input

Value

PasswordInput

Input component with automatic visibility toggle and eye icon.

Input

Value

NumberInput

Enhanced numeric input with formatting, validation, and internationalization support.

Input

Value

NumberInput Features:

  • Currency support: Any currency symbol (prefix)
  • Suffix support: For percentages or units
  • International formatting: Custom decimal and thousands separators
  • Negative modes: Minus sign, parentheses, or both
  • Rounding modes: Round, floor, ceil, or truncate for integers
  • Smart validation: Position-aware keystroke filtering
  • Consistent formatting: Maintains format during focus/blur