Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CreateComponentData

import type { CreateComponentData } from "https://aws-api.deno.dev/v0.3/services/amplifyuibuilder.ts?docs=full";

Represents all of the information that is required to create a component.

interface CreateComponentData {
bindingProperties: {
[key: string]: ComponentBindingPropertiesValue | null | undefined;
}
;
children?: ComponentChild[] | null;
collectionProperties?: {
[key: string]: ComponentDataConfiguration | null | undefined;
}
| null;
componentType: string;
name: string;
overrides: {
[key: string]: {
[key: string]: string | null | undefined;
}
| null | undefined
;
}
;
properties: {
[key: string]: ComponentProperty | null | undefined;
}
;
sourceId?: string | null;
tags?: {
[key: string]: string | null | undefined;
}
| null;
variants: ComponentVariant[];
}

§Properties

§
bindingProperties: {
[key: string]: ComponentBindingPropertiesValue | null | undefined;
}
[src]

The data binding information for the component's properties.

§
children?: ComponentChild[] | null
[src]

A list of child components that are instances of the main component.

§
collectionProperties?: {
[key: string]: ComponentDataConfiguration | null | undefined;
}
| null
[src]

The data binding configuration for customizing a component's properties. Use this for a collection component.

§
componentType: string
[src]

The component type. This can be an Amplify custom UI component or another custom component.

§
name: string
[src]

The name of the component

§
overrides: {
[key: string]: {
[key: string]: string | null | undefined;
}
| null | undefined
;
}
[src]

Describes the component properties that can be overriden to customize an instance of the component.

§
properties: {
[key: string]: ComponentProperty | null | undefined;
}
[src]

Describes the component's properties.

§
sourceId?: string | null
[src]

The unique ID of the component in its original source system, such as Figma.

§
tags?: {
[key: string]: string | null | undefined;
}
| null
[src]

One or more key-value pairs to use when tagging the component data.

§

A list of the unique variants of this component.