From 923bbab6d5dfc0ebda9530edde22de7970f075c6 Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Wed, 26 Jun 2024 14:11:16 +0300 Subject: [PATCH] Add className prop to Switch component --- src/bootstrap/Switch.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/Switch.js b/src/bootstrap/Switch.js index de5180e..e101e0a 100644 --- a/src/bootstrap/Switch.js +++ b/src/bootstrap/Switch.js @@ -19,15 +19,16 @@ Switch.propTypes = { ]).isRequired, helpText: PropTypes.string, switchHeading: PropTypes.bool, + className: PropTypes.string, }; -function Switch({ label, helpText, switchHeading, ...props }) { +function Switch({ label, helpText, switchHeading, className, ...props }) { const uid = useUID(); return (