How to use the @crave/farmblocks-image.propTypes function in @crave/farmblocks-image

To help you get started, we’ve selected a few @crave/farmblocks-image examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CraveFood / farmblocks / packages / sidenav / src / components / NavItem / NavItem.js View on Github external
icon: PropTypes.node,

  /**
   * Size for the icon
   */
  iconSize: PropTypes.string,

  /**
   * Image src url (don't use `image` prop along with `icon` prop)
   */
  image: PropTypes.string,

  /**
   * Props for image component, accept any farmblocks-image prop
   */
  imageProps: PropTypes.shape(Image.propTypes),

  /**
   * Props for children(text) component, accept any farmblocks-text prop
   */
  textProps: PropTypes.shape(Text.propTypes),
};

export default NavItem;

@crave/farmblocks-image

A react component for thumbnail images

MIT
Latest version published 3 years ago

Package Health Score

49 / 100
Full package analysis

Similar packages