Skip to content

Commit

Permalink
Add prop-type for element type (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
andycarrell authored and Matt Shwery committed Jan 13, 2020
1 parent f8eca94 commit be608b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/box.tsx
Expand Up @@ -25,7 +25,7 @@ Box.propTypes = {
PropTypes.func,
PropTypes.shape({ current: PropTypes.element })
]),
is: PropTypes.oneOfType([PropTypes.string, PropTypes.func])
is: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.elementType])
}

Box.defaultProps = {
Expand Down

0 comments on commit be608b2

Please sign in to comment.