Native Components

Webflow.js Build Dependencies

It's likely that a few elements like Collection Lists involve server-side rendering ( SSR ). These elements may not be especially customizable.

JavaScript-Powered Elements

Some elements require JS. Ideally we want this JS fully self-contained.

  • function() IIFE to isolate component data and code

  • script element relative DOM traversal to locate the component root element and manage code from there

Leveraging Component Properties

We want our elements to be maximally useful, so ideally we can make the best use of properties.

Using custom elements, our attributes can only be

In certain cases this requires using script to extract content from e.g. a hidden image or link element when the component needs that data for specific purposes.

Last updated