Code components
Create or import React-based components for use inside and outside Webflow
Create or import React-based components for use inside and outside Webflow
Code components are React components that are enhanced for use within Webflow sites and in external sites. They allow you to use React components that you developed for other sites in Webflow and synchronize components between your Webflow and non-Webflow sites via DevLink.
You can work with imported or created Webflow Code components directly on the canvas with props, slots, and variants for flexible composition. You can also use AI-powered tools to generate and modify complex, interactive code components.
Create a code component and share an example library to your workspace
Generate a Code Component with AI and make changes to it with AI prompts
Update your existing library to work with DevLink and code components
With code components, you get full control over your React development:
Learn more about configuring your components for Webflow →
These types of code components are available in Webflow:
These components behave the same way within Webflow except for the limitations of AI-generated code components; see Limitations of generated code components.
For more information about the types of code components, see Webflow component type overview.
Create React components with hooks, state management, and API integrations. Reference Webflow variables to allow components to adapt to an individual site’s colors, typography, sizes, and spacing.
Use declareComponent to wrap an existing React component, then define prop types to make them available in the Webflow Designer.
Use DevLink to bundle and publish your components as a shared library for users to install across a workspace.
Install code components as a shared library on any Webflow site in your workspace.