UNPKG

react-hold

Version:

Hold the empty presentational components in react.js

27 lines (19 loc) 587 B
import PropTypes from 'prop-types'; /* | All of the prop types in this file is belongs to placeholder component. */ export var color = PropTypes.string; export var width = PropTypes.number; export var height = PropTypes.number; export var cancelHold = PropTypes.func; export var targetProps = PropTypes.object; // This is a inner prop use to add more custom style to the placeholder. export var fillerStyle = PropTypes.object; export default { color: color, width: width, height: height, cancelHold: cancelHold, targetProps: targetProps, fillerStyle: fillerStyle };