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

Failed to ignore revisions in .git-blame-ignore-revs.

22 lines
641 B
JavaScript
Raw Normal View History

const TextField = ({ label, value, onChange }) =>
2023-05-29 16:22:34 +02:00
h(
"span",
{ key: "text-" + label, className: "flex flex-col w-full" },
h(
"label",
{
className:
"w-full flex text-xs font-bold dark:font-semibold group-focus-within/active:text-blue-500 group-hover/active:text-blue-500 cursor-text text-slate-500 dark:text-slate-400 px-3 pt-3",
},
label
),
h("input", {
className:
"MuiInout-Input w-full h-6 px-3 bg-transparent outline-none text-sm font-medium text-gray-900 dark:text-gray-100 cursor-default",
value,
onChange,
})
);
export default TextField;