diff --git a/packages/dashboard-v2/src/components/Switch/Switch.js b/packages/dashboard-v2/src/components/Switch/Switch.js index 02b361c0..9bf1920c 100644 --- a/packages/dashboard-v2/src/components/Switch/Switch.js +++ b/packages/dashboard-v2/src/components/Switch/Switch.js @@ -74,7 +74,7 @@ Switch.propTypes = { /** * Element to be rendered as the switch label */ - children: PropTypes.element, + children: PropTypes.oneOfType([PropTypes.element, PropTypes.string]), /** * Pass additional CSS classes to the `label` element. */