Skip to main content

Allow overriding slots auto layout direction in component instances

  • June 10, 2026
  • 1 reply
  • 20 views

EduardB

I’ve run into a limitation with auto layout when working with components that use slots.

Currently, the auto layout direction (horizontal/vertical) defined in the main component seems to be locked for any instances. When content is placed into a slot, it inherits that direction and there’s no way to override it locally at the instance level.

This becomes restrictive in cases where the same structural component needs to adapt to slightly different layout contexts.

Is there a technical reason why auto layout direction is fixed this way? For example, is it tied to how slots are implemented under the hood or how layout calculations propagate from the main component?

It would be very useful to allow overriding the auto layout direction per slot.

1 reply

JettyLou
  • New Participant
  • June 18, 2026

100% agree, I came here to mention this exact issue. The fact that auto layout direction is locked at the main component level makes slots feel impractical.
 

For a temporary fix, I've been adding a Direction variant to the components I drop into slots (e.g. Direction: Horizontal / Vertical as a component property). That way I can swap direction at the instance level through the slotted component itself. It's not ideal since you have to build that variant into every component you plan to slot, but it works.
 

Still think this should be natively supported though.