Find answers to common questions about code components, from setup to troubleshooting.
Imported components support React with TypeScript. You can use:
Code components render in Shadow DOM, which isolates styles. Common issues:
Reference site variables in your component CSS:
Get the exact variable name from the Variables panel in Webflow Designer.
Yes, but with important limitations:
Example of safe API usage:
webflow devlink import to deployNote: You can’t update individual components - the entire library is deployed as one unit.
Yes, use the local bundling feature:
This creates a dist folder you can serve locally for testing.
Currently, code components don’t support versioning. Each import replaces the previous version. Consider:
Check these common issues:
Shadow DOM limitations can cause styling issues:
inherit values for cross-boundary stylingEach code component runs in its own React root, so:
localStorage, or external state managementLearn more about component architecture and state management when building React components for import into Webflow.
Common import issues:
.env fileMaximum bundle size is 50MB. To optimize:
Most React libraries work, but some have limitations:
window or document may conflictLearn more about styling components when building React components for import into Webflow.
console.log statements--dev flag for better error messagesYes, TypeScript is fully supported. Use .tsx files for your components and configure tsconfig.json for your project.
Use standard CSS media queries within your component:
Yes, CSS animations and transitions work normally within the Shadow DOM boundary. Use standard CSS animation properties and @keyframes.