1.0.0-prototype.2 • Published 5 years ago

@liquid-labs/react-validation v1.0.0-prototype.2

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

react-validation

Self-validating React user-input component built on top of Material UI.

Installation & usage

npm i @liquid-labs/react-validation

Then:

import React from 'react'

import {
  ValidationContext,
  ValidInput,
  useValidationAPI } from '@liquid-labs/react-validation'

const HelloInternals = () => {
  const vcAPI = useValidationAPI()

  return (
    <>
      <ValidInput label="Name" />
      <submit disabled={ !vcAPI.isValid() } />
    </>
  )
}

const HelloWidget = () =>
  <ValidationContext>
    <HelloInternals />
  </ValidationContext>
0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago