gcg-website/static/admin/shortcodes/components/text-field.js

22 lines
491 B
JavaScript
Raw Normal View History

const TextField = ({ label, value, onChange }) =>
2023-05-29 16:22:34 +02:00
h(
"span",
2023-09-30 21:15:23 +02:00
{ key: "text-" + label, className: "CMS_Field_wrapper" },
2023-05-29 16:22:34 +02:00
h(
"label",
{
2023-09-30 21:15:23 +02:00
className: "CMS_Label_root CMS_TextField_cursor-default",
2023-05-29 16:22:34 +02:00
},
label
),
h("input", {
className:
2023-09-30 21:15:23 +02:00
"MuiInput-input CMS_TextField_input CMS_WidgetString_input CMS_TextField_borderless CMS_Label_cursor-text",
type: "text",
2023-05-29 16:22:34 +02:00
value,
onChange,
})
);
export default TextField;