Available from: 2.0.0
Import
import { Component } from "@supernovaio/sdk"
Properties
- idInVersion: The unique identifier of the component within this particular design system version.
- id: The unique identifier of the component. 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 component is located.
- brandId: The unique identifier of the brand to which the component belongs. Each component always belongs to a brand. There can be the same semantic component associated with a different brand (but it will be a different object).
- name: The name of the component, offering a human-readable label to identify it easily and distinguish it from other components within the same design system version.
- description: A brief description that provides insights into the component's purpose, characteristics, or unique functionality.
- properties: An array of element properties associated with this component. These properties define the configurable attributes and behaviors of the component.
- 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 components in the design system have same properties, but each component can have unique values set for each of those properties.
- createdAt: The timestamp indicating when the component was first created within the design system version.
- updatedAt: The timestamp indicating the most recent date and time when the component was updated or modified within the design system version.