form-ratings

0.3.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i form-ratings

Weekly Downloads

7

Version

0.3.0

License

MIT

Unpacked Size

22.6 kB

Total Files

7

Last publish

Collaborators

  • felamaslen