> This page is for Home.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# DevLink Export keeps conditions, attributes, Code props, and Slot styling

> Exported components now keep conditional variant rules, custom attributes, Code prop values, and Slot classes and attributes that were previously dropped.

DevLink Export now keeps four things that earlier exports dropped or changed. Re-run `webflow devlink export` to pick them up.

## What changed

* **Variant conditions on nested components.** A condition on a nested component's Style Variant prop now compares against that prop's own variant names. Before, it used the host component's names, so a rule such as "hide when the variant is the default" never matched. This applies to visibility conditions and to conditional attribute values.
* **Custom attributes on elements.** Custom attributes on a Custom Element or DOM element are now exported when they are conditional, bound to an Attributes prop, or static attributes next to a bound prop.
* **Code props.** A Code Embed bound to a Code prop now receives the prop value, so the default you set in Webflow is rendered. A Code prop that your embed combines with other text is not supported yet, and that embed still exports without content.
* **Slots.** A Slot now exports as an element that carries its tag, classes, and attributes and wraps the slot content. Before, only the content was exported.

## Slot wrapper element

A Slot is an element with its own tag, classes, and attributes, so it now exports as an element that wraps the content you pass in, even when it has no styling. The element keeps the slot's tag, classes, and attributes, so styles you apply in the Designer carry over. A Slot with the default tag exports as `<Block tag="div">` around its content. This can change layout where a Slot sits inside a flex or grid parent, so check your layouts and selectors after you re-export.

```tsx
// Before
<Block tag="div">
  {cardContent}
</Block>

// After
<Block tag="div">
  <Block className="card-slot" tag="div">
    {cardContent}
  </Block>
</Block>
```

For more information, see [Props and slots](/devlink/docs/component-export/design-guidelines/props-slots#slots).