html-input-rut

1.4.2 • Public • Published

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).

dmeo

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} />
  )
}

License

MIT

/html-input-rut/

    Package Sidebar

    Install

    npm i html-input-rut

    Weekly Downloads

    12

    Version

    1.4.2

    License

    MIT

    Unpacked Size

    21.6 kB

    Total Files

    15

    Last publish

    Collaborators

    • jondotsoy