html-input-rut
v1.4.2
Published
This module is a simple web component to create a input chilean RUT validation. Compatible with pure HTML and any framework (React, Vie, Angular, Other).
Downloads
682
Maintainers
Readme
HTML Input RUT
This module is a simple web component to create a input chilean RUT validation. Compatible with pure HTML and any framework (React, Vie, Angular, Other).
Installing
Using NPM:
$ npm i html-input-rut
Using UNPKG:
<script
type="module"
src="https://unpkg.com/html-input-rut">
</script>
Usage on HTML
Add the HTML attribute is
with value input-rut
to the input element:
<input is="input-rut" />
Usage on a React Component
Import the module html-input-rut
and use it in the component:
import React from 'react'
import InputRut from 'html-input-rut'
export default () => {
return (
<input is={InputRut} />
)
}