@makeen.io/material-ui-kit
Version:
Makeen UI components kit. Based on material-ui.
15 lines (9 loc) • 1.03 kB
JavaScript
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";function _templateObject() {var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n & .question-text {\n margin-bottom: 20px;\n }\n"]);_templateObject = function _templateObject() {return data;};return data;}import React from "react";
import styled from "styled-components";
import SurveyElementRadioGroup from "./Elements/Radio";
var Wrapper = styled.div(_templateObject());
var SurveyRadioGroup = function SurveyRadioGroup(_ref) {var value = _ref.value,name = _ref.name,onChange = _ref.onChange,options = _ref.options,question = _ref.question,mode = _ref.mode;return /*#__PURE__*/React.createElement(Wrapper, null,
question && /*#__PURE__*/React.createElement("div", { className: "question-text" }, question), /*#__PURE__*/
React.createElement(SurveyElementRadioGroup, { value: value, options: options, name: name, onChange: onChange }));};
export default SurveyRadioGroup;
//# sourceMappingURL=Radio.js.map