
React Export
Framer's React Export plugin converts your designs into React code with full type support and responsive settings, offering an efficient development environment.
The Framer to React Exporter is a powerful plugin that bridges Framer's intuitive design environment with a production-ready React codebase. By selecting components in the Framer interface and running the unframer
CLI, fully type-safe React components are generated instantly. These can be integrated directly into modern React frameworks like Next.js and Remix.
Note
: Prior knowledge of React development is required.
Key Features
Complete Type Safety: Every exported component includes a
.d.ts
TypeScript definition file, enabling IDE code completion and build-time error detection.Autocomplete for Props & Variables: Framer's variables and design tokens are mapped to React props, providing IntelliSense and smart autocomplete.
Responsive Breakpoint Support: The responsive behavior set in Framer is directly transformed into React components.
Compatible with Various Frameworks: Usable with minimal setup in any React-based environment like Next.js and Remix.
How to Use
Design in Framer: Create the desired UI like headers, footers, banners, and hero sections.
Select Components to Export: Specify entire sections or specific UI elements.
Run unframer CLI
: React files and.d.ts
files download together to ensure type checking and smooth development.Integrate into Project: Import into your React project to modify styles, set up SSR, and add event handlers like
onClick
.
More Than Static Export
This plugin does more than export static components; it offers type safety, SSR support, and custom event binding, allowing interactive UIs created in Framer to be seamlessly applied in production environments.
How It Works
Framer components export as JavaScript files supporting SSR, variables, fetch, forms, color styles, and dark mode from Framer. These files are downloaded using the unframer
CLI to be imported and rendered in your codebase.
As these files are machine-generated, direct modification is not possible. Instead, control text changes, update button links, and connect event handlers using React props by leveraging Framer variables.
By utilizing React Export, you can directly import the output from Framer's latest design tools into maintainable type-safe React code without recoding components from scratch.
Explore More Plugins