"Expose nested properties" not working on instance-swapped components

I have a modal drawer component, where the body is just one big slot. So the designer would make their drawer content into a component, and swap that into the slot. The problem is that the drawer contents have states and variants, but none of these are surfaced at the top level, even when I try to expose them.