diff --git a/src/Toast/index.jsx b/src/Toast/index.jsx index 0e1f33c851..1407e826a6 100644 --- a/src/Toast/index.jsx +++ b/src/Toast/index.jsx @@ -78,7 +78,7 @@ Toast.defaultProps = { Toast.propTypes = { /** A string or an element that is rendered inside the main body of the `Toast`. */ - children: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired, + children: PropTypes.node.isRequired, /** * A function that is called on close. It can be used to perform * actions upon closing of the `Toast`, such as setting the "show"