SolidJSS
SolidJSโ€ข4y agoโ€ข
2 replies
Baptiste

Register custom component props without default values

Currently, I need to give default values to component properties if I want them to be registered:

customElement(
    'typebot-standard',
    {
      apiHost: '',
      isPreview: false,
      resultId: '',
      startGroupId: '',
      prefilledVariables: {},
      typebotId: '',
    },
    Bot
  )


But that's really not convenient. Is there a way to register props without default values?
Was this page helpful?