Component slots

Designers are well acquainted with the challenges of maintaining both flexibility and consistency within their design systems. As websites grow and adapt, maintaining consistency across every design iteration has become a cumbersome task, but it is no longer the case. With the introduction of component slots, Webflow is changing the way designers create and manage design systems. Slots allow for the creation of components with placeholders, which do not require predetermined content. This empowers marketers and clients to interchange the contents while preserving a consistent design structure

Originally introduced in the Web Component specification, slots have now been seamlessly integrated into Webflow’s components. This enhancement aligns Webflow’s capabilities more closely with established development standards. Slots are specialized elements found in the Add panel that act as placeholders within components. This modular approach significantly enhances flexibility, allowing for the customization of component instances with various elements.

With slots, designers can establish a core set of composable components that can be dynamically used across different layouts and pages. This modular system reduces the number of components to manage and streamlines the design process. Adding flexible sections to your overall system will enable a more composable design approach, where components act like building blocks that can be nested and combined in countless ways.

Incorporating slots into your design system allows for a consistent structural framework while accommodating content variations and updates. This leads to a more manageable, scalable, and adaptable design system that efficiently meets the evolving needs of your projects.

1 Like

@matthewpmunger This is great news! I think this is again a huge step towards making Webflow more accessible and usable for clients (at least as soon as the page-builder is released).

Small Feedback:
I just tested the feature for about an hour and I really like it. There’s only one scenario where I ran into a problem:
When I have a 3-column feature list that could potentially contain an unlimited amount of features, it is not possible to build that properly with slots.

The problem is that for every feature-item I have to use a separate slot.
But when I have currently 7 features but I want it to be possible to insert 12 features in this list, then I put in 12 slots. But the problem is that if a slot stays empty it will still take its space on the published site. So in the case above it would create an additional empty row to the grid.

@matthewpmunger How would you use slots in this scenario?

Again, big applause to Webflow for creating this feature! I think it will make life a lot easier for us developers :-)

Hey @Schuschi_Eyes

For this scenario, try just using a single slot and style the slot to be a 3 column grid with 1 row so that rows auto generate. You can add an unlimited amount of components into that slot. Hope that helps.

2 Likes

I don’t have the Slots icon in the panel neither in the search bar, is it available in France ?

Slots are available to all customers. The Slot element is only available when editing a component as that’s the only place they’re usable. Hope that helps.

1 Like

I definitely don’t understand what is it and what is it for… Do you have more documentation? Mor eexplicit and detailed than Slots - Webflow University Documentation

I’m very curious as I use a lot of components…

I have been checking daily wondering why I didn’t have slots available! This information should be on the documentation on how to use them! Thanks for this. Been waiting to test this out…

Here are some nice community created resources about Slots.

1 Like

It seems like there are some bugs when trying to add flexbox styles to the slot container itself. I had to style the slot container as a grid, then go back and add flexbox styles for it to finally kick in.

Video: Dropbox Capture

Also, it would be VERY handy to show some sort of placeholder style for slots when there is nothing in them, sort of like you do with an empty DIV block before placing content inside of it. When clicking away from a slot container, if it does not have any styles, it just collapses. There’s no way to visually see the slot “target” on the canvas, which makes it very hard to drag and drop components to it.

Thanks for sharing those videos, I appreciate you.

Do I see this correctly that the component slots cannot be filled by users with the marketer role within the framework of page building? Why is this not possible?

1 Like

Just encountered the same problem. Any workaround here?
I mean if that is not integrated wouldn’t it destroy the whole idea of a scalable component library for the marketer role?

1 Like

That seems weird… I agree with @Alexander_Richter that it makes the principle of a component library a bit obsolete if that is not possible.

Thanks! Your switch-to-grid-and-back process helped my slot container flexbox. Not sure what’s up with that.

I agree. Here’s a Wishlist item.
https://wishlist.webflow.com/ideas/WEBFLOW-I-6771

I was about to test if component slots can be added into page slots now and couldn’t find the component slot element anymore… Am I tripping or did this element get removed from the designer?