Skip to content

CreateComponentData

Source code in docs_src/capo_amplifyuibuilder/types/create_component_data.py
class CreateComponentData(TypedDict, closed=True):
    name: "capo_amplifyuibuilder.types.component_name.ComponentName"
    """<p>The name of the component</p>"""
    source_id: NotRequired["str"]
    """<p>The unique ID of the component in its original source system, such as Figma.</p>"""
    component_type: "capo_amplifyuibuilder.types.component_type.ComponentType"
    """<p>The component type. This can be an Amplify custom UI component or another custom component.</p>"""
    properties: "capo_amplifyuibuilder.types.component_properties.ComponentProperties"
    """<p>Describes the component's properties.</p>"""
    children: NotRequired[
        "capo_amplifyuibuilder.types.component_child_list.ComponentChildList"
    ]
    """<p>A list of child components that are instances of the main component.</p>"""
    variants: "capo_amplifyuibuilder.types.component_variants.ComponentVariants"
    """<p>A list of the unique variants of this component.</p>"""
    overrides: "capo_amplifyuibuilder.types.component_overrides.ComponentOverrides"
    """<p>Describes the component properties that can be overriden to customize an instance of the component.</p>"""
    binding_properties: "capo_amplifyuibuilder.types.component_binding_properties.ComponentBindingProperties"
    """<p>The data binding information for the component's properties.</p>"""
    collection_properties: NotRequired[
        "capo_amplifyuibuilder.types.component_collection_properties.ComponentCollectionProperties"
    ]
    """<p>The data binding configuration for customizing a component's properties. Use this for a collection component.</p>"""
    tags: NotRequired["capo_amplifyuibuilder.types.tags.Tags"]
    """<p>One or more key-value pairs to use when tagging the component data.</p>"""
    events: NotRequired["capo_amplifyuibuilder.types.component_events.ComponentEvents"]
    """<p>The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.</p>"""
    schema_version: NotRequired["str"]
    """<p>The schema version of the component when it was imported.</p>"""

binding_properties instance-attribute

binding_properties: ComponentBindingProperties

The data binding information for the component's properties.

children instance-attribute

children: NotRequired[ComponentChildList]

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

collection_properties instance-attribute

collection_properties: NotRequired[ComponentCollectionProperties]

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

component_type instance-attribute

component_type: ComponentType

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

events instance-attribute

events: NotRequired[ComponentEvents]

The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.

name instance-attribute

The name of the component

overrides instance-attribute

overrides: ComponentOverrides

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

properties instance-attribute

properties: ComponentProperties

Describes the component's properties.

schema_version instance-attribute

schema_version: NotRequired[str]

The schema version of the component when it was imported.

source_id instance-attribute

source_id: NotRequired[str]

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

tags instance-attribute

tags: NotRequired[Tags]

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

variants instance-attribute

A list of the unique variants of this component.