Using Exported Components
Once you’ve exported your components, you can use them in your React project. This section provides guides for integrating Exported Components with various frameworks, styling and theming, data and state integration, and best practices for usage.
Using Exported Components
Apply Webflow's design system globally
To apply Webflow’s design system globally, import the global.css
file at the root of your application.
Wrap your application in the DevLinkProvider component
Wrap your application in the DevLinkProvider
component to ensure all exported components have access to Webflow interactions.
Use the DevLink alias
To import the components and styles into your React project, you can use the DevLink alias. To set up the alias, update the paths in tsconfig.json
to the correct location of your DevLink components.
Use the exported components
Now you can import and use your Webflow components in your application. This particular example uses three components exported from Webflow via DevLink: Hero
, Card
, and Button
.
You can use them in your application:
Always include the component name in the import
Always include the component name in the import. For example, import { Hero } from '@/devlink/Hero';
instead of import { Hero } from '@/devlink';
.
Learn more
How to setup DevLink and export components to a React project.
Specific guides for integrating DevLink with various frameworks, including Next.js (App Router & Pages Router), Remix, Gatsby, and Vite/CRA.
How to override DevLink component styles using CSS Modules, global CSS imports, reusing Webflow classes, targeting namespaced selectors, and advanced configuration.
Solutions for common issues encountered when working with DevLink, including authentication, component sync, styling, interactions, and framework-specific problems.