How to use the @primer/octicons-react.propTypes function in @primer/octicons-react

To help you get started, we’ve selected a few @primer/octicons-react 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 primer / components / src / CircleOcticon.js View on Github external
)
}

CircleOcticon.defaultProps = {
  theme,
  ...Flex.defaultProps,
  size: 32
}

CircleOcticon.propTypes = {
  ...Flex.propTypes,
  icon: Octicon.propTypes.icon,
  size: PropTypes.number,
  theme: PropTypes.object
}

export default CircleOcticon

@primer/octicons-react

A scalable set of icons handcrafted with <3 by GitHub.

MIT
Latest version published 22 days ago

Package Health Score

89 / 100
Full package analysis