Quickstart: DevLink Export
Quickstart: DevLink Export
Quickstart: DevLink Export
Export your Webflow components to React with DevLink Export.
In this guide, you’ll learn how to configure DevLink and export Webflow components to a React project. This guide uses Next.js, but you can export and use components in any React-based framework.
Prerequisites Before running this quickstart, make sure you have:
npm installed.@webflow/webflow-cli v1.19.0 or later (installed in step 2).DevLink exports Components only, not every element on the canvas. If the elements you want to export aren’t components yet, convert them first:

From the root of your React project, run:
The first time you run it, the CLI authenticates you in your browser and walks you through a short setup. Accept the defaults to export every component into a ./webflow folder with style isolation enabled, or follow the prompts to filter by component name or group. Your answers are saved to webflow.json so future runs don’t prompt again — see Configuration options to tune them later.
The CLI populates the webflow/ folder with your React components, the generated stylesheets, a DevLinkProvider for runtime wiring, and the supporting modules they depend on. See What’s exported for the full breakdown.
Look for @warning tags that indicate that DevLink was not able to export an identifier, as described in Name changes.
Add a webflow/* alias to the paths section of your tsconfig.json so you can import the exported components by name instead of using long relative paths:
With the alias in place, import { Button } from 'webflow/Button' resolves to your local ./webflow/Button file from anywhere in the app.
In your app/layout.tsx file, import the global CSS file generated by DevLink so all components have the styles and resets they expect. If your Webflow components have interactions, also wrap your app in the DevLinkProvider to enable them at runtime:
Import the DevLinkFontTags component and place it in the <head> element of your root layout.tsx file.
This component loads external fonts server-side, which prevents a fallback font from appearing briefly before the correct fonts load:
If your Webflow site uses no external fonts, the DevLinkFontTags component returns null with no performance cost.
Without the DevLinkFontTags component, fonts still load via client-side injection, but a brief flash of a fallback font may appear before the correct font renders.
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:
When you make changes to your components in Webflow, run the export again to refresh them in your React project:
The command refreshes the files in webflow/. Your own application code outside that folder is untouched.
You can also run the export in CI by setting WEBFLOW_API_TOKEN in your CI environment and adding the --no-input flag:
If you encounter authentication issues:
Verify that your API token has the correct permissions
Verify that the token has access to the site whose ID is set in webflow.json (a Site API token only authorizes that one site; a Workspace API token authorizes every site in the workspace)
Ensure that your environment variables are properly loaded
Check that the webflow.json file is in the root directory of the React application
If all else fails, force a fresh login to clear any stale credentials:
If your components don’t look the same as in Webflow:
css/global.css in your applicationDevLinkProvider and DevLinkFontTags tags are properly set upIf a component isn’t available after exporting:
devlink-export object in the webflow.json file match it