From d69398ac06846fe115dc770f823ebbc15f56f3b8 Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Fri, 28 Jun 2024 10:29:41 +0300 Subject: [PATCH] Add className prop to CheckBox and Radio components --- src/bootstrap/CheckBox.js | 6 ++++-- src/bootstrap/RadioSet.js | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/bootstrap/CheckBox.js b/src/bootstrap/CheckBox.js index 0f7da40..7cf744d 100644 --- a/src/bootstrap/CheckBox.js +++ b/src/bootstrap/CheckBox.js @@ -17,17 +17,19 @@ CheckBox.propTypes = { helpText: PropTypes.string, /** Control if checkbox is clickable */ disabled: PropTypes.bool, + /** Additional class name */ + className: PropTypes.string, }; CheckBox.defaultProps = { disabled: false, }; -function CheckBox({ label, helpText, disabled, ...props }) { +function CheckBox({ label, helpText, disabled, className, ...props }) { const uid = useUID(); return ( -
+