DevLink converts Webflow’s component properties into fully typed React props, giving you programmatic control over your components.
These props come with full TypeScript support and preserve all the defaults and rules set up in Webflow. You can use them to update content, handle user interactions, and control how your components behave in your React app.
Webflow’s native component properties for content and visibility. The visual editor defines these properties, and DevLink automatically types them in React. DevLink Export supports the following properties:
A prop’s Type setting determines the values it can accept and how it appears in the Designer.
This Button component has text and visibility props to show the number of new notifications for a user. The text prop sets the number of notifications, while the showThis visibility prop shows/hides the button based on the number of notifications.
Attributes props let exported components forward arbitrary HTML attributes — data-*, aria-*, id, role, event handlers, refs — onto an element’s underlying DOM node. DevLink emits the prop typed as Record<string, unknown> and spreads it on the bound element.
Use Attributes props to:
data-testid, data-analytics-id)aria-label, aria-describedby)onClick, onSubmit)refYou have two ways to expose Attributes on an element:
Record<string, unknown>. Any static attributes you set become the prop’s default value.This Button component has a buttonAttributes Attributes prop bound to the button element.
In the exported component, the prop type is Record<string, unknown>, and the static attributes you set in the Designer become the default value:
Webflow’s native Slot element lets a component accept other components as content, so you can nest components in instances of a parent component — from the Designer or from React.
To create a slot:
For example, this Card component has a cardContent slot that accepts a React component as its value:
You can put other React components in the slot by passing them as the prop value, as in this example:
When to use slots
For more information about using slots, see Slots.