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)),
};