@makeen.io/material-ui-kit
Version:
Makeen UI components kit. Based on material-ui.
15 lines (9 loc) • 942 B
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 Checkbox from "./Elements/Checkbox";
var Wrapper = styled.div(_templateObject());
var SurveyCheckbox = function SurveyCheckbox(_ref) {var options = _ref.options,onChange = _ref.onChange,question = _ref.question,mode = _ref.mode;return /*#__PURE__*/React.createElement(Wrapper, null,
question && /*#__PURE__*/React.createElement("div", { className: "question-text" }, question), /*#__PURE__*/
React.createElement(Checkbox, { options: options, onChange: onChange }));};
export default SurveyCheckbox;
//# sourceMappingURL=Checkbox.js.map