This is an overview of the changes to the Webflow APIs and related tools. To filter the list, select one or more tags.
Updates to components API
These new and updated functions are now available in the Designer API:
webflow.getComponentByName(name): Get a component by its name and optionally its group (Beta)component.getVariants(): Get all variants of a component (Beta)component.getSelectedVariant(): Get all variants of a component (Beta)
Beta
These methods are in public beta and may change with future releases.
Retrieving a component by name
You can now retrieve a component by its name and optionally its group with the new webflow.getComponentByName() function (Beta):
For more information, see Get component by name (Beta).
Getting component variants
The new functions component.getVariants() and component.getSelectedVariant() get the variants of a component and the selected variant of a component, as in these examples:
For more information, see:
Get all variants of a component: Get all variants of a componentGet selected variant: Get all variants of a component