You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
526 B
20 lines
526 B
3 years ago
|
import React from 'react'
|
||
|
import MaskedInput from '../src/reactTextMask'
|
||
|
|
||
|
export default () => (
|
||
|
<form className='form-horizontal'>
|
||
|
<div className='form-group'>
|
||
|
<label htmlFor='1' className='col-sm-2 control-label'>Masked input</label>
|
||
|
|
||
|
<div className='col-sm-10'>
|
||
|
<MaskedInput
|
||
|
mask={['(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]}
|
||
|
className='form-control'
|
||
|
id='1'
|
||
|
type='text'
|
||
|
/>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
)
|