Interactive Playground
Experiment with masks, labels, icons, sizing, and validation states in real-time.
Configuration
Top
Mask & Sizing
Phone: +1 (###) ###-####
Small (sm)
Icons
Phone
None
States
v-model Output:
""
""
Live Source Code
Standard Masks
Use the mask prop to enforce specific data entry patterns. Use # for numbers and @ for letters.
Template
Inline Forms (Left Labels)
Pass labelPosition="left" to align the label next to the input. This layout automatically stacks on mobile devices.
Template
Validation & States
The error prop transforms the input and intelligently maps over arrays to display multiple validation requirements.
Invalid date format.
Must be a valid international format.
Cannot start with a zero.
Template
Input Sizing
Five carefully calibrated sizes. Use xs specifically for dense data tables or tight inline filters.
Template
Advanced Tokens & Dynamics
Pass an array to mask for dynamic lengths, or map custom RegExp validation using the tokens prop.
Custom Tokens
Template