Home > @plasmicapp/loader-nextjs > NextJsPlasmicComponentLoader > getActiveVariation
NextJsPlasmicComponentLoader.getActiveVariation() method
Signature:
getActiveVariation(opts: {
req?: ServerRequest;
res?: ServerResponse;
known?: Record<string, string>;
traits: Record<string, string | number | boolean>;
}): Promise<Record<string, string>>;
Parameters
Parameter | Type | Description |
---|---|---|
opts | { req?: ServerRequest; res?: ServerResponse; known?: Record<string, string>; traits: Record<string, string | number | boolean>; } |
Returns:
Promise<Record<string, string>>