@makeen.io/material-ui-kit
Version:
Makeen UI components kit. Based on material-ui.
9 lines • 815 B
JavaScript
import _extends from "@babel/runtime/helpers/extends";import React from "react";
import FormControl from "@material-ui/core/FormControl";
import InputLabel from "@material-ui/core/InputLabel";
import MenuItem from "@material-ui/core/MenuItem";
import Select from "@material-ui/core/Select";
export default (function (_ref) {var id = _ref.id,name = _ref.name,label = _ref.label,options = _ref.options;return /*#__PURE__*/React.createElement(FormControl, { variant: "outlined" }, /*#__PURE__*/
React.createElement(InputLabel, { id: name }, label), /*#__PURE__*/
React.createElement(Select, _extends({}, { id: id, name: name }), options.map(function (option) {return /*#__PURE__*/React.createElement(MenuItem, { key: option.value, value: option.value }, option.label);})));});
//# sourceMappingURL=MuiSelect.js.map