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

See every breakpoint while you edit

See every breakpoint while you edit

Learn more
Introducing slot restrictions

Introducing slot restrictions

Learn more
Drag to reorder multi-reference CMS choices

Drag to reorder multi-reference CMS choices

Learn more
Bulk create form select options

Bulk create form select options

Learn more
Split attributes on paste — available for all users today

Split attributes on paste — available for all users today

Learn more
Custom Fonts in Libraries

Custom Fonts in Libraries

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.