UNPKG

@hypernetlabs/web-ui

Version:
18 lines 1.05 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextInput = void 0; const core_1 = require("@material-ui/core"); const react_1 = __importDefault(require("react")); const TextInput_style_1 = require("../../components/TextInput/TextInput.style"); const TextInput = (props) => { const { onChange, label, disabled, value, placeholder, fullWidth } = props; const classes = (0, TextInput_style_1.useStyles)(); return (react_1.default.createElement(core_1.Box, { className: classes.wrapper }, react_1.default.createElement("label", { className: classes.label }, label), react_1.default.createElement("input", { type: "text", value: value, onChange: (event) => onChange && onChange(event.target.value), disabled: disabled, placeholder: placeholder, className: classes.textInput }))); }; exports.TextInput = TextInput; //# sourceMappingURL=TextInput.js.map