Skip to content

feat: Add inputmode prop to Input component #1900

@KeterVM

Description

@KeterVM

Feature request 🚀

Expected: Allow

  • Expose inputmode attribute for Input component
  • Better mobile keyboard control
  • No breaking changes

Examples:

// Decimal keyboard for prices/weights
<var-input v-model="price" inputmode="decimal" placeholder="Price" />

Programme:

Add optional inputmode prop to Input component:

interface InputProps {
  inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'
}

Others:

  • Good browser support on modern mobile devices
  • Falls back gracefully on unsupported browsers
  • Improves mobile UX by showing appropriate virtual keyboards
  • Works alongside existing type attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions