@layer5/meshery-design-embed

0.4.0 • Public • Published

Meshery Design Embed Package

Meshery Design Embedding allows you to export a design in a format that can be integrated into websites, blogs, or platforms supporting HTML, CSS, and JavaScript. This embedded version offers an interactive representation of the design, simplifying sharing with infrastructure stakeholders.

meshery-design-embed react component

This component is meant to facilate the usage of meshery embeddings inside react and its frameworks

Usage :

import MesheryDesignEmbed from '@layer5/meshery-design-embed'


function Design() {
  return (
    <>

      <div>
        <MesheryDesignEmbed
          embedScriptSrc="embedded-design-embed1.js"
          embedId="embedded-design-a3d3f26e-4366-44e6-b211-1ba4e1a3e644"
        />
      </div>
    </>
  );
}

Props:

  • embedScriptSrc: "Relative path to the exported design"
  • embedId: "Emebedded design id"
  • style: "Custom styles to the embeded design E.g. backgroundColor, textColor, etc"

Limitations

Certain aspects of Meshery Designs and their visualization are not currently supported in embed mode (when a design is embedded into a webpage).

  1. Relationship: Singular Node inventory wallet (badge)
  2. Relationship: TagSets (BubbleSets)
  3. Component: Textboxes
  4. Function: Error badges based on validation checks
  5. Function: Component Locking (pinning a component in-place moving with edges; Automove)
  6. Function: Viewing component configuration
  7. Function: Viewing comments

Learn more about embedding Meshery Designs.

/@layer5/meshery-design-embed/

    Package Sidebar

    Install

    npm i @layer5/meshery-design-embed

    Weekly Downloads

    338

    Version

    0.4.0

    License

    none

    Unpacked Size

    135 kB

    Total Files

    6

    Last publish

    Collaborators

    • aabidsofi19
    • apullman
    • l5io
    • leecalcote