Skip to content

felamaslen/form-ratings

Repository files navigation

form-ratings

Star ratings Formik component

NPM

Install

npm install --save form-ratings

Live demo

Please see here for a live demo!

Usage

The following would be placed inside a <Formik /> form:

import React from 'react'
import { Field } from 'formik';
import FormRatings from 'form-ratings'

function Example() {
  return (
    <Field as={FormRatings} />
  );
}

Please see the code in the example/ directory for more information.

Development

In one tab, run the rollup watcher:

  • npm start

In another tab, run the create-react-app development server:

  • cd example && npm start

License

MIT © felamaslen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published