|
| 1 | +--- |
| 2 | +id: adding-components |
| 3 | +title: Adding Components to Pipelines |
| 4 | +description: How to add components to your pipeline workspace |
| 5 | +--- |
| 6 | + |
| 7 | +import { ImageAnnotation } from "@site/src/components/ImageAnnotation"; |
| 8 | + |
| 9 | +# Adding Components to Pipelines |
| 10 | + |
| 11 | +Components are the building blocks of your ML pipelines in TangleML. This guide covers the different methods to add components to your pipeline workspace. |
| 12 | + |
| 13 | + |
| 14 | +### 1. Upload Component File |
| 15 | + |
| 16 | +Upload a YAML component file directly from your computer to add it to your user components library. |
| 17 | + |
| 18 | +:::tip |
| 19 | +Uploaded components are immediately available in your User Components library and can be reused across different pipelines. |
| 20 | +::: |
| 21 | + |
| 22 | + |
| 23 | +<ImageAnnotation src={require("./assets/AddingComponents_File.png").default} alt="Import from URL screenshot"> |
| 24 | + |
| 25 | +1. Click on the **File** option in the component panel |
| 26 | +2. Select a YAML component file from your computer |
| 27 | +3. The component will automatically be added to your **User Components** folder |
| 28 | + |
| 29 | +</ImageAnnotation> |
| 30 | + |
| 31 | + |
| 32 | +### 2. Import from URL |
| 33 | + |
| 34 | +Import components from publicly accessible URLs, particularly useful for GitHub-hosted components. |
| 35 | + |
| 36 | +:::tip |
| 37 | +This method works great with raw GitHub URLs, allowing you to import components directly from repositories. |
| 38 | +::: |
| 39 | + |
| 40 | +<ImageAnnotation src={require("./assets/AddingComponents_URL.png").default} alt="Import from URL screenshot"> |
| 41 | + |
| 42 | + |
| 43 | +1. Select the **URL** option |
| 44 | +2. Enter the publicly accessible URL to the YAML file |
| 45 | +3. The browser will automatically download and validate the component |
| 46 | +4. If valid, it will be added to your User Components library |
| 47 | + |
| 48 | +</ImageAnnotation> |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +### 3. In-App Component Editor |
| 53 | + |
| 54 | +Create and edit components directly in your browser using the built-in editor. |
| 55 | + |
| 56 | +:::info |
| 57 | +Learn more about the [In-App Component Editor](/docs/component-development/in-app-editor). |
| 58 | +::: |
| 59 | + |
| 60 | +<ImageAnnotation src={require("./assets/AddingComponents_New.png").default} alt="In-App Component Editor screenshot"> |
| 61 | + |
| 62 | +1. Click on the **New** button in the "Add component" dialog |
| 63 | +2. Select the component template you want to use |
| 64 | +3. The editor will open and you can start editing the component |
| 65 | +4. Once you're done, click the **Save** button to save the component. The component will be added to your User Components library. |
| 66 | + |
| 67 | +</ImageAnnotation> |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | +### 4. Drag and Drop YAML Files |
| 72 | + |
| 73 | +Simply drag a YAML component file from your file system and drop it directly onto the canvas. |
| 74 | + |
| 75 | +<video src={require("./assets/AddingComponents_Drop.mov").default} autoPlay loop muted playsInline style={{ width: "100%" }}> |
| 76 | + Your browser does not support the video tag. |
| 77 | +</video> |
| 78 | + |
| 79 | +### 5. Import from Other Pipelines |
| 80 | + |
| 81 | +Reuse components from your existing pipelines by importing them into your User Components library. |
| 82 | + |
| 83 | +<video src={require("./assets/AddingComponents_AddFromPipeline.mov").default} autoPlay loop muted playsInline style={{ width: "100%" }}> |
| 84 | + Your browser does not support the video tag. |
| 85 | +</video> |
| 86 | + |
| 87 | +### 6. Using Standard Library Components |
| 88 | + |
| 89 | +Access components from the Standard Library for tasks shared within the TangleML instance. |
| 90 | + |
| 91 | +:::tip |
| 92 | +All components in the Standard Library are well documented with implementation details you can inspect by clicking the component info dialog and checking the **Implementation** tab. |
| 93 | +::: |
| 94 | + |
| 95 | +<ImageAnnotation src={require("./assets/AddingComponents_StandardLibrary.png").default} alt="Import from Standard Library screenshot"> |
| 96 | + |
| 97 | +1. Expand the **Standard Library** folder in the left panel, Components section. |
| 98 | +2. Select the component you want to add. |
| 99 | +3. Drag the component onto the canvas. |
| 100 | + |
| 101 | +</ImageAnnotation> |
| 102 | + |
| 103 | +### 7. Shared Components Library |
| 104 | + |
| 105 | +Access components from the Shared Components Library for tasks shared within the TangleML instance. |
| 106 | + |
| 107 | +:::info |
| 108 | +Learn more about the [Shared Components Library](/docs/component-development/published-components-library). |
| 109 | +::: |
0 commit comments