Component

class Component

Contains the configuration settings for a user interface (UI) element for an Amplify app. A component is configured as a primary, stand-alone UI element. Use ComponentChild to configure an instance of a Component. A ComponentChild instance inherits the configuration of the main Component.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The unique ID of the Amplify app associated with the component.

Link copied to clipboard

The information to connect a component's properties to data at runtime. You can't specify tags as a valid property for bindingProperties.

Link copied to clipboard

A list of the component's ComponentChild instances.

Link copied to clipboard

The data binding configuration for the component's properties. Use this for a collection component. You can't specify tags as a valid property for collectionProperties.

Link copied to clipboard

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

Link copied to clipboard

The time that the component was created.

Link copied to clipboard

The name of the backend environment that is a part of the Amplify app.

Link copied to clipboard

Describes the events that can be raised on the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.

Link copied to clipboard
val id: String

The unique ID of the component.

Link copied to clipboard

The time that the component was modified.

Link copied to clipboard

The name of the component.

Link copied to clipboard

Describes the component's properties that can be overriden in a customized instance of the component. You can't specify tags as a valid property for overrides.

Link copied to clipboard

Describes the component's properties. You can't specify tags as a valid property for properties.

Link copied to clipboard

The schema version of the component when it was imported.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

A list of the component's variants. A variant is a unique style configuration of a main component.

Functions

Link copied to clipboard
inline fun copy(block: Component.Builder.() -> Unit = {}): Component
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String