Icon components don’t need to be combined into variants. You need to add Auto Layout to the component with “Hug content” settings, and set the icon layer (eg vector) to “Fixed width” and “Fixed height”.
To create a frame with zero height and/or width, just write .001
in the appropriate fields.