Create a component
webflow.registerComponent(name, root)
Registers a new component definition with the specified name and root element.
Syntax
Parameters
name
: string - The name of the component.root
: AnyElement - The root element of the component.
Returns
Promise< Component>
A Promise that resolves to the registered component.