Taking the code from here:
<TextField
placeholder={text("Placeholder", "default placeholder")}
debounceRate={number("Debounce Rate (see console log)", 0)}
iconsNames={{ primary: "Primary Icon - could be any icon" }}
iconName={text("Primary Icon Name", "fa-circle")}
secondaryIconName={text("Secondary Icon Name", "")}
validation={select(
"Validation State",
{
None: null,
Error: { status: "error", text: "error" },
Success: { status: "success", text: "success" },
Assist: { status: "", text: "assist text" }
},
{ status: "", text: "assist text" }
)}
id="Knobs"
disabled={boolean("Disabled", false)}
readonly={boolean("Readonly", true)}
size={select(
"Size",
{ Small: TextField.sizes.SMALL, Medium: TextField.sizes.MEDIUM, Large: TextField.sizes.LARGE },
TextField.sizes.MEDIUM
)}
clearOnIconClick={boolean("clear data in icon click", true)}
labelIconName={text("FieldLabel Icon Name", "fa-envelope")}
title={text("Text filed label", "FieldLabel")}
showCharCount={boolean("show hide char count", true)}
required={boolean("Filed is required", false)}
/>
I’ve also imported TextField:
import TextField from "monday-ui-react-core/dist/TextField.js"
When I run the app, none of the above functions are defined:
./src/App.js
Line 22:20: ‘text’ is not defined no-undef
Line 23:21: ‘number’ is not defined no-undef
Line 25:17: ‘text’ is not defined no-undef
Line 26:26: ‘text’ is not defined no-undef
Line 27:19: ‘select’ is not defined no-undef
Line 38:17: ‘boolean’ is not defined no-undef
Line 39:17: ‘boolean’ is not defined no-undef
Line 40:13: ‘select’ is not defined no-undef
Line 45:25: ‘boolean’ is not defined no-undef
Line 46:22: ‘text’ is not defined no-undef
Line 47:14: ‘text’ is not defined no-undef
Line 48:22: ‘boolean’ is not defined no-undef
Line 49:17: ‘boolean’ is not defined no-undef