Skip to content

JonDotsoy/html-input-rut

Repository files navigation

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

About

WebComponent to create input chilean RUT

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages