Get the selected component (Beta)
webflow.getCurrentComponent()
Retrieves the component that is currently being edited.
Beta
This feature is released as part of a Beta program and may change in future releases.
Syntax
Returns
Promise<Component>
A Promise that resolves to a component or null if no component is currently being edited.
Example
Designer Ability
Checks for authorization only