API Reference
Platform docs

Home > @uniformdev/canvas > mapSlotToPersonalizedVariations

mapSlotToPersonalizedVariations() function

Converts components in a slot into personalized variations (based on each component's intent tag in Canvas) suitable to pass to a personalize component Useful when implementing custom personalization settings for Canvas components.

Signature:

Parameters

ParameterTypeDescription
slotComponentInstance[] | undefined

Returns:

Array<ComponentInstance & PersonalizedVariant>>

Join our community on Discord
Check out our public repositories on GitHub
Enjoy some video content on YouTube