Home > @plasmicapp/loader-react > PlasmicComponentLoader > setGlobalVariants
PlasmicComponentLoader.setGlobalVariants() method
Sets global variants to be used for all components. Note that this is not reactive, and will not re-render all components already mounted; instead, it should be used to activate global variants that should always be activated for the lifetime of this app. If you'd like to reactively change the global variants, you should specify them via
Signature:
setGlobalVariants(globalVariants: GlobalVariantSpec[]): void;
Parameters
Parameter | Type | Description |
---|---|---|
globalVariants | GlobalVariantSpec[] |
Returns:
void