form-ratings
Star ratings Formik component
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' { return <Field = /> ;}
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