@samwise-tech/monet-prop-types

React prop types for MonetJS


License
Unlicense
Install
npm install @samwise-tech/monet-prop-types@0.1.2

Documentation

monet-prop-types

React prop types for MonetJS.

Usage

import { arrayOf, string } from 'prop-types';
import MonetPropTypes from '@samwise-tech/monet-prop-types';

MyComponent.propTypes = {
  message: MonetPropTypes.maybeOf(string),
  emails: MonetPropTypes.eitherOf(string, arrayOf(string)),
};