@zeplin/extension-model
    Preparing search index...

    Class Component

    An interface that represents a Component.

    Index

    Constructors

    Properties

    description?: string

    Description of the component.

    latestVersion: null | Version = null

    Latest version of the component.

    name: string

    Name of the component.

    properties?: ComponentProperty[]

    Variant properties of the component.

    sourceId: string

    Identifier from design tool.

    Variant that the component is part of.

    Accessors

    Methods

    • Finds property by unique identifier

      Parameters

      • propertyId: string

        Unique identifier of the property

      Returns undefined | ComponentProperty

      The property or undefined if not found

    • Creates a Component instance from a JSON string

      Parameters

      • json: string

        JSON string representing a component

      Returns Component

      A new Component instance