Skip to main content
Nico5
Nov 18, 2022 7:37 PM UTC
Question

Hiding instance swap components?

Is there a way to hide the components that are made available through an instance swap property? For example I want to use instance swap on an avatar component to change the person image, but I don’t want these person images to be usable as a component.

I tried hiding the person images with a “.” but that also hides it from the instance swap options.

For example, try using this file as a library, and instance swap on the avatar component

This topic has been closed for replies.

4 replies

matthewlyle
New Member
Apr 17, 2023 1:30 PM UTC

I’m curious about this too. There are a number of places I’d have preferred to use hidden instance swaps but have instead had to use other component properties just to keep the import menu clean.

Apr 19, 2023 1:53 PM UTC

Maybe I didn’t get your question right, but why don’t you just hide them?

Corin
New Participant
Nov 1, 2023 3:24 AM UTC

That hides them from your screen, but when published they are visible everyone in your org when searching for assets in the library, which makes the library for a big system very messy 😦

Jul 29, 2024 2:48 PM UTC

Any updates on this? I have the same problem. I want to have a master Icon component. The specific icon you want to use, can be picked through the instance swap property. I don’t want people to both be able to use the master Icon component ánd individual icon components.