From ea5b63af18bafd88184547fb71c84f66bff3ae26 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Thu, 23 Dec 2021 17:09:09 +0530 Subject: [PATCH] Add RadioButton component Signed-off-by: Ajay Bura --- src/app/atoms/button/RadioButton.jsx | 25 +++++++++++++++++++++++++ src/app/atoms/button/RadioButton.scss | 24 ++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/app/atoms/button/RadioButton.jsx create mode 100644 src/app/atoms/button/RadioButton.scss diff --git a/src/app/atoms/button/RadioButton.jsx b/src/app/atoms/button/RadioButton.jsx new file mode 100644 index 0000000..b10e0cf --- /dev/null +++ b/src/app/atoms/button/RadioButton.jsx @@ -0,0 +1,25 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import './RadioButton.scss'; + +function RadioButton({ isActive, onToggle }) { + return ( + // eslint-disable-next-line jsx-a11y/control-has-associated-label +