-
-
Notifications
You must be signed in to change notification settings - Fork 628
Open
Description
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
haoziqaq and william-xue
Metadata
Metadata
Assignees
Labels
No labels