import { UICompBuilder, stringExposingStateControl, Section, withExposingConfigs, NameConfig, } from "lowcoder-sdk"; import styles from "./style.module.css"; const childrenMap = { text: stringExposingStateControl("text", "world"), }; const HelloWorldCompBase = new UICompBuilder(childrenMap, (props: any) => { const text = props.text.value; return
Hello {text}
; }) .setPropertyViewFn((children: any) => { return
{children.text.propertyView({ label: "Text" })}
; }) .build(); export default withExposingConfigs(HelloWorldCompBase, [new NameConfig("text", "")]);