All Projects → elsangedy → use-input-mask

elsangedy / use-input-mask

Licence: MIT License
use-input-mask.now.sh

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to use-input-mask

react-text-mask-hoc
A higher-order text-mask component decorator for React and React Native.
Stars: ✭ 18 (+5.88%)
Mutual labels:  input-mask, text-mask
execmon
Advanced process execution monitoring utility for linux (procmon like)
Stars: ✭ 77 (+352.94%)
Mutual labels:  hooks
react-drag
A drag and drop platform based on sortable.js front-end visualization. 一个基于sortable.js的前端可视化搭建的拖拽平台,ui组件采用antd-mobile.通过umi脚手架构建.技术栈采用dva+hooks+umi+antd-mobile+sortable.js+react-color.
Stars: ✭ 51 (+200%)
Mutual labels:  hooks
react-typescript-hooks-realworld
conduit realworld application with [ React + Typescript + Redux + Hooks ]
Stars: ✭ 20 (+17.65%)
Mutual labels:  hooks
hooks
A DLL that performs IAT hooking
Stars: ✭ 21 (+23.53%)
Mutual labels:  hooks
use-metamask
a custom React Hook to manage Metamask in Ethereum ĐApp projects
Stars: ✭ 131 (+670.59%)
Mutual labels:  hooks
CJMethodLog
Objective-C 函数日志监听系统,可监听任意类,任意类的任意方法的调用日志。
Stars: ✭ 26 (+52.94%)
Mutual labels:  hooks
react-awesome-reveal
React components to add reveal animations using the Intersection Observer API and CSS Animations.
Stars: ✭ 564 (+3217.65%)
Mutual labels:  hooks
reactive-hooks
Reactive Hooks Library
Stars: ✭ 29 (+70.59%)
Mutual labels:  hooks
use-saga-reducer
Use redux-saga without redux
Stars: ✭ 72 (+323.53%)
Mutual labels:  hooks
useAudioPlayer
Custom React hook & context for controlling browser audio
Stars: ✭ 176 (+935.29%)
Mutual labels:  hooks
eventrix
Open-source, Predictable, Scaling JavaScript library for state managing and centralizing application global state. State manage system for react apps.
Stars: ✭ 35 (+105.88%)
Mutual labels:  hooks
reactools
Create React interfaces is easy.
Stars: ✭ 14 (-17.65%)
Mutual labels:  hooks
wagmi
React Hooks for Ethereum
Stars: ✭ 1,691 (+9847.06%)
Mutual labels:  hooks
use-window-focus
React Hook to check if window is focused
Stars: ✭ 19 (+11.76%)
Mutual labels:  hooks
preact-urql
Preact bindings for urql
Stars: ✭ 28 (+64.71%)
Mutual labels:  hooks
useStateMachine
The <1 kb state machine hook for React
Stars: ✭ 2,231 (+13023.53%)
Mutual labels:  hooks
use-unmount-signal
A React Hook to cancel promises when a component is unmounted
Stars: ✭ 276 (+1523.53%)
Mutual labels:  hooks
use-mobile-detect-hook
React hook to detect the device type
Stars: ✭ 62 (+264.71%)
Mutual labels:  hooks
rn-chat
Chat app made with React Native, NativeBase, Apollo Hooks and Sequelize.
Stars: ✭ 37 (+117.65%)
Mutual labels:  hooks

use-input-mask

MIT License downloads PRs Welcome All Contributors

Installation

$ yarn add use-input-mask
# or
$ npm i use-input-mask

Usage

import React from 'react'

import useInputMask from 'use-input-mask'

import { createAutoCorrectedDatePipe } from "text-mask-addons";

const MyDateInput = props => {
  const input = useRef(null);

  const autoCorrectedDatePipe = createAutoCorrectedDatePipe("dd/mm/yyyy HH:MM");

  const onChange = useInputMask({
    input,
    onChange: props.onChange,
    mask: [/\d/, /\d/, "/", /\d/, /\d/, "/", /\d/, /\d/, /\d/, /\d/],
    pipe: autoCorrectedDatePipe,
    keepCharPositions: true
  });

  return <input {...props} ref={input} onChange={onChange} />;
};

export default MyDateInput

Roadmap

  • tests
  • ci/cd
  • semantic-release
  • docs
  • all-contributors

Inspiration

text-mask

Contributors

Thanks goes to these wonderful people (emoji key):

Munir Ahmed Elsangedy
Munir Ahmed Elsangedy

💻 📖
Renato Ribeiro
Renato Ribeiro

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

LIENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].