Class CfnComponentPropsMixin.ComponentVariantProperty
The ComponentVariant property specifies the style configuration of a unique variation of a main component.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.AmplifyUIBuilder
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnComponentPropsMixin.ComponentVariantProperty : CfnComponentPropsMixin.IComponentVariantProperty
Syntax (vb)
Public Class CfnComponentPropsMixin.ComponentVariantProperty Implements CfnComponentPropsMixin.IComponentVariantProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.AmplifyUIBuilder;
var overrides;
var componentVariantProperty = new ComponentVariantProperty {
Overrides = overrides,
VariantValues = new Dictionary<string, string> {
{ "variantValuesKey", "variantValues" }
}
};
Synopsis
Constructors
| ComponentVariantProperty() | The |
Properties
| Overrides | The properties of the component variant that can be overriden when customizing an instance of the component. |
| VariantValues | The combination of variants that comprise this variant. |
Constructors
ComponentVariantProperty()
The ComponentVariant property specifies the style configuration of a unique variation of a main component.
public ComponentVariantProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.AmplifyUIBuilder;
var overrides;
var componentVariantProperty = new ComponentVariantProperty {
Overrides = overrides,
VariantValues = new Dictionary<string, string> {
{ "variantValuesKey", "variantValues" }
}
};
Properties
Overrides
The properties of the component variant that can be overriden when customizing an instance of the component.
public object? Overrides { get; set; }
Property Value
Remarks
You can't specify tags as a valid property for overrides .
VariantValues
The combination of variants that comprise this variant.
public object? VariantValues { get; set; }
Property Value
Remarks
Type union: either Dictionary<string, string> or IResolvable