All updates

Enhancement

Designer

Use component props in custom code

Reference props and dynamic data directly in Code Embed elements.

Use component props in custom code

Code Embeds give you the power to add custom HTML, CSS, and JavaScript anywhere on your site. Now, you can also use component props, locale settings, and page settings directly in custom code, just like CMS fields.

Add references from the connect button in the code editor, with support for almost any prop type — Text, Number, Image, Link, Switch, and more. For example, reference a Text prop in custom CSS to allow individual styles to be set per instance, or build a JSON-LD block that pulls from props to generate structured data for AEO.

We're also introducing a new Code prop, allowing you to connect an entire Code Embed element. It's now easy to swap SVG markup, third-party embeds, and other custom code on each instance.

Rolling out now on all plans with custom code. Learn more in the Help Center.


Launched on
May 19, 2026
Category
Designer

Related updates

Pan and zoom for pages

Pan and zoom for pages

Learn more
See spacing values on the canvas

See spacing values on the canvas

Learn more
Updates to DevLink Export

Updates to DevLink Export

Learn more
Dynamic attributes for components

Dynamic attributes for components

Learn more
Introducing AI code components

Introducing AI code components

Learn more
Modern devices for the canvas

Modern devices for the canvas

Learn more

verifone logomonday.com logospotify logoted logogreenhouse logoclear logocheckout.com logosoundcloud logoreddit logothe new york times logoideo logoupwork logodiscord logo
verifone logomonday.com logospotify logoted logogreenhouse logoclear logocheckout.com logosoundcloud logoreddit logothe new york times logoideo logoupwork logodiscord logo

Get started for free

Try Webflow for as long as you like with our free Starter plan. Purchase a paid Site plan to publish, host, and unlock additional features.

Get started — it’s free
Watch demo

Try Webflow for as long as you like with our free Starter plan. Purchase a paid Site plan to publish, host, and unlock additional features.