Asset

The Ąsset represents a single imported Figma asset that was previously published to a linked Figma<>Supernova library. Assets are components that were additionally marked as exportable in Figma.

Available from: 2.0.0

Import


                                                        
                                                        
                                                            import { Asset } from "@supernovaio/sdk"
                                                        
                                                            

Properties

  • idInVersion: The unique identifier of the asset within this particular design system version.
  • id: The unique identifier of the asset. This ID serves as a constant and unchanging reference to the component entity, regardless of the version.
  • designSystemVersionId: The identifier of the design system version in which the asset is located.
  • brandId: The unique identifier of the brand to which the component belongs. Each asset always belongs to a brand. There can be the same semantic asset associated with a different brand (but it will be a different object).
  • name: The name of the asset, offering a human-readable label to identify it easily and distinguish it from other assets within the same design system version.
  • description: A brief description that provides insights into the asset's purpose, characteristics, or unique functionality.
  • properties: An array of element properties associated with this asset. These properties define the configurable attributes and behaviors of the asset.
  • propertyValues: An object containing key-value pairs where each key corresponds to an element property's identifier (property.id), and its value provides the property's payload. All assets in the design system have same properties, but each asset can have unique values set for each of those properties.
  • createdAt: The timestamp indicating when the assets was first created within the design system version.
  • updatedAt: The timestamp indicating the most recent date and time when the asset was updated or modified within the design system version.