0.2.0 • Published 12 months ago

@t4kumi_js/react-run-input v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

React RUN Input

A React RUN input component for Chilean people

Install

Install this package using: npm install @t4kumi_js/react-run-input

Usage

import React, { useState } from 'react';

// To import the input component
import { RUNInput } from '@t4kumi_js/react-run-input';

// To import a validator and data treatment functions
import { checkRUN, cleanRUN, formatRUN } from '@t4kumi_js/react-run-input';

export default () => {
  const [value, setValue] = useState('');

  return (
    <div>
      <RUNInput
        value={value}
        handleChangeValue={setValue}
        /* some DOM properties (e.g. className, disabled, required, etc.) */
      />
    </div>
  );
};