interface ComponentVariantProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AmplifyUIBuilder.Mixins.CfnComponentPropsMixin.ComponentVariantProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsamplifyuibuilder/mixins#CfnComponentPropsMixin_ComponentVariantProperty |
Java | software.amazon.awscdk.mixins.preview.services.amplifyuibuilder.mixins.CfnComponentPropsMixin.ComponentVariantProperty |
Python | aws_cdk.mixins_preview.aws_amplifyuibuilder.mixins.CfnComponentPropsMixin.ComponentVariantProperty |
TypeScript | @aws-cdk/mixins-preview » aws_amplifyuibuilder » mixins » CfnComponentPropsMixin » ComponentVariantProperty |
The ComponentVariant property specifies the style configuration of a unique variation of a main component.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as amplifyuibuilder_mixins } from '@aws-cdk/mixins-preview/aws-amplifyuibuilder';
declare const overrides: any;
const componentVariantProperty: amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentVariantProperty = {
overrides: overrides,
variantValues: {
variantValuesKey: 'variantValues',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| overrides? | any | The properties of the component variant that can be overriden when customizing an instance of the component. |
| variant | { [string]: string } | IResolvable | The combination of variants that comprise this variant. |
overrides?
Type:
any
(optional)
The properties of the component variant that can be overriden when customizing an instance of the component.
You can't specify tags as a valid property for overrides .
variantValues?
Type:
{ [string]: string } | IResolvable
(optional)
The combination of variants that comprise this variant.

.NET
Go
Java
Python
TypeScript