react-hook-format
v1.1.8
Published
Simplify number and field formatting in JavaScript with React Hook Format. A lightweight and flexible library that provides an uncomplicated way to format and present data consistently. Effortlessly transform your formatting operations, making data manipu
Downloads
40
Maintainers
Readme
Features
- Built with a focus on performance and usability
- Use in native HTML form
- Simplify number and field formatting
Install
npm install react-hook-format
Quickstart
import { useFormat } from 'react-hook-format';
function App() {
const { pattern } = useFormat();
return (
<form>
<input name="document" {...pattern('###.###.###-##')} />
<input name="price" {...pattern('R$#.###,##')} />
<input type="submit" />
</form>
);
}
Contributors
Thank you for being amazing people!