Skip to content

Commit 72c6870

Browse files
authored
Merge branch 'master' into patch-7
2 parents ad78ec2 + ac69888 commit 72c6870

File tree

1 file changed

+5
-1
lines changed
  • packages/react/src/components/Button

1 file changed

+5
-1
lines changed

packages/react/src/components/Button/Button.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ Button.propTypes = {
112112
* Specify how the button itself should be rendered.
113113
* Make sure to apply all props to the root node and render children appropriately
114114
*/
115-
as: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
115+
as: PropTypes.oneOfType([
116+
PropTypes.func,
117+
PropTypes.string,
118+
PropTypes.elementType,
119+
]),
116120

117121
/**
118122
* Specify an optional className to be added to your Button

0 commit comments

Comments
 (0)