simply use useSlots
and apply css
conditionally
const slots = useSlots()
const doesLeadingSlotExist = computed(() => {
if ('leading' in slots) {
return true;
}
return false;
});
Would have preferred a pure css solution but this approach also works.