Skip to content

luicfrr/antd-imask-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 Introduction

An iMasked Ant Design Input component.

Is this package usefull to you?

Buy Me A Coffee

Or give it a ⭐ on GitHub.

🧰 Installation

yarn add antd-imask-input

💡 Usage Example

import InputMasked from 'antd-imask-input'

function MyMaskedInputComponent() {

  return (
    <InputMasked
      maskOptions={ {
        mask: '0[0][0].0[0][0].0[0][0].0[0][0]'
        lazy: true // makes mask placeholder invisible
      } }
      placeholder={ 'Type here' }
      size={  'large' }
      allowClear={ true }
      autoComplete='off'
      // ... any other react/antd prop
    />
  )
}

Mask Options

Option Description Options
maskOptions iMask options See InputMaskOptions
onChange Mask change event. (event: ChangeEvent & {maskedValue: string unmaskedValue: string }) => any
props Any other React/Antd props -

👷 Built With

🔎 About

This package requires you to use:

  • react: >= 18
  • antd: >= 5

Make sure to use only supported versions before opening issues.

📚 Author

Made with ❤️ by luicfrr

About

Ant Design masked input

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •