Error while building a custom widget?

0
I'm encountering some errors related to TypeScript when attempting to add attributes for the Class and Style in an XML file.   Additionally, I've noticed a discrepancy in the attribute types between the interface TextBoxNContainerProps, which receives attributes as EditableValue<string>, and TextBoxNPreviewProps, which receives attributes as a plain string.   I'm uncertain whether this difference in attribute types is the cause of the error messages.  
asked
3 answers
0

Hi

Use the expression this.props.textAttribute.value to get a string value.

answered
0

 

In TextBoxN.editorPreview.tsx file getting below error message

 

 

 

In TextInput.tsx getting below error message

 

answered
0

The component or html tag which you return from any react component has a style prop that is an object and not a string (this.props.style is a string afterall)
you cannot pass a string data to a prop that is of type object.
EDIT: you seem to have updated the question. The above answer is for your first screenshot :)

answered