An array of the attributes that your custom element will accept and react to.
Your React component. It will get the props declared in the propNames
argument, and any updates to them.
It will also get a children
prop with the <slot>
component.
Any options you want to pass to the DOM's attachShadow
and
React's createRoot
.
Optional
reactOptional
shadow
Turns a React component into a DOM Custom Element.
Remark
You probably will want to
customElements.define()
in order to use it in your HTML.