Complete the code to create a component set with multiple variants.
componentSet = createComponentSet({ variants: [1] })The variants property should be an array of variant names like ['small', 'medium', 'large'] to define different component states.
Complete the code to set the default variant in a component set.
componentSet.defaultVariant = [1]The defaultVariant should be set to one of the variant names as a string, for example 'medium'.
Fix the error in the code that merges two component sets.
mergedSet = mergeComponentSets(setA, [1])To merge two component sets, you must pass the second component set object, like setB.
Fill both blanks to define variant properties and their types in a component set.
componentSet.variantProperties = { size: [1], color: [2] }Variant properties are defined as arrays of possible values, like sizes and colors.
Fill all three blanks to create a component set with variants, default variant, and description.
componentSet = {
variants: [1],
defaultVariant: [2],
description: [3]
}The variants array lists variant names, defaultVariant is one of those names, and description is a string explaining the component set.