form-ratings
v0.3.0
Published
Formik component for star ratings
Downloads
5
Readme
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'
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