0

when I have a web component called Test ,and its props is TestProps ,when I use createComponent (@lit-labs/react) ,I want to give this function TestProps that I need let others who uses "Test " know what kind of argument that "Test" can receive.

`import {createComponent} from '@lit-labs/react'; import {Test} from '@/my-element'; import type {TestProps} from '@/my-element';

export const MyElementComponent = createComponent(React,"test-component",Test); // ??? how to use TestProps`

I want to know how to do that others can use with correct props .

woho
  • 1

0 Answers0