I'm making a component with two different component skins. Only second skins doesn't need custom appearance settings.
What I want is if the second skin is selected the rest of the appearance settings disappear (and reappear if the first one is selected). So for example in the screenshot I want the "Margin"-option to be hidden.
How do I do that?

(I know you can simply not use that settings in the second skin, but that will confuse the users.)