💄 Components section images compressed
Before Width: | Height: | Size: 780 KiB |
BIN
img/components/components-annotation.webp
Normal file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 508 KiB |
BIN
img/components/components-annotations-inspect.webp
Normal file
After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 556 KiB |
BIN
img/components/components-create.webp
Normal file
After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 299 KiB |
BIN
img/components/components-delete.webp
Normal file
After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 493 KiB |
BIN
img/components/components-drag.webp
Normal file
After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 299 KiB |
BIN
img/components/components-duplicate-main.webp
Normal file
After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 1.1 MiB |
BIN
img/components/components-group.webp
Normal file
After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 325 KiB |
BIN
img/components/components-main-copy.webp
Normal file
After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 716 KiB |
BIN
img/components/components-overrides.webp
Normal file
After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 508 KiB |
BIN
img/components/components-page-main.webp
Normal file
After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 594 KiB |
BIN
img/components/components-reset-overrides.webp
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 266 KiB |
BIN
img/components/components-restore.webp
Normal file
After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 1.5 MiB |
BIN
img/components/components-show-asset.webp
Normal file
After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 1.0 MiB |
BIN
img/components/components-show-main.webp
Normal file
After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 680 KiB |
BIN
img/components/components-swap.webp
Normal file
After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 438 KiB |
BIN
img/components/components-update-shared.webp
Normal file
After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 438 KiB |
BIN
img/components/components-update.webp
Normal file
After Width: | Height: | Size: 7.1 KiB |
|
@ -12,7 +12,7 @@ title: 10· Components
|
|||
<li><strong>Component copy</strong> (also known as instance): These are duplicates of Main components that inherit its properties.</li>
|
||||
</ol>
|
||||
<figure>
|
||||
<img src="/img/components/components-main-copy.png" alt="Components main and copy" />
|
||||
<img src="/img/components/components-main-copy.webp" alt="Components main and copy" />
|
||||
<figcaption>Mains and copies have different icons. Mains also have a title header at the viewport.</figcaption>
|
||||
</figure>
|
||||
<p>All component copies used in a file are linked in a way that updates made to the Main component can reflect in their component copies. You can override properties for component copies, so that you can manage singularities while maintaining properties in common.</p>
|
||||
|
@ -24,7 +24,7 @@ title: 10· Components
|
|||
<li>Press <kbd>Ctrl</kbd> + <kbd>K</kbd> or right click and select the option “Create component” at the object menu.</li>
|
||||
</ol>
|
||||
<figure>
|
||||
<video title="Creating a component" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-create.png" height="auto">
|
||||
<video title="Creating a component" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-create.webp" height="auto">
|
||||
<source src="/img/components/components-create.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
@ -35,7 +35,7 @@ title: 10· Components
|
|||
<h4>Duplicate as main component</h4>
|
||||
<p>You can duplicate a component as a new main component from the assets sidebar. Just select the component at the library, open the menu with right click and select the option "Duplicate main".</p>
|
||||
<figure>
|
||||
<video title="Duplicate main component" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-duplicate-main.png" height="auto">
|
||||
<video title="Duplicate main component" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-duplicate-main.webp" height="auto">
|
||||
<source src="/img/components/components-duplicate-main.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
@ -44,7 +44,7 @@ title: 10· Components
|
|||
<p>You can delete main components and its copies anytime <a href="/user-guide/layer-basics/#deleting-layers">the same way</a> you can delete any other layer.</p>
|
||||
<p>Deleting a main component at the viewport means deleting it at the assets library and viceversa, so be careful!</p>
|
||||
<figure>
|
||||
<video title="Deleting main components" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-delete.png" height="auto">
|
||||
<video title="Deleting main components" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-delete.webp" height="auto">
|
||||
<source src="/img/components/components-delete.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
@ -56,7 +56,7 @@ title: 10· Components
|
|||
<li>From the <strong>sidebar menu</strong>: Open the sidebar menu of the component copy and press the option "Restore main component".</li>
|
||||
</ul>
|
||||
<figure>
|
||||
<img src="/img/components/components-restore.png" alt="Components main and copy" />
|
||||
<img src="/img/components/components-restore.webp" alt="Components main and copy" />
|
||||
<figcaption>Mains and copies have different icons. Mains also have a title header at the viewport.</figcaption>
|
||||
</figure>
|
||||
|
||||
|
@ -68,7 +68,7 @@ title: 10· Components
|
|||
<li><strong>Using the "Group" option:</strong> Select one or more components at the Assets library, right click to show the menu and then select "Group".</li>
|
||||
</ol>
|
||||
<figure>
|
||||
<video title="Grouping components" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-group.png" height="auto">
|
||||
<video title="Grouping components" muted="" playsinline="" controls="" width="100%" poster="/img/components/components-group.webp" height="auto">
|
||||
<source src="/img/components/components-group.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
@ -79,7 +79,7 @@ title: 10· Components
|
|||
<h4>Drag components to groups</h4>
|
||||
<p>One very direct way to move components between groups at the assets library is by dragging them.</p>
|
||||
<figure>
|
||||
<video title="Drag components" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-drag.png" height="auto">
|
||||
<video title="Drag components" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-drag.webp" height="auto">
|
||||
<source src="/img/components/components-drag.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
@ -90,7 +90,7 @@ title: 10· Components
|
|||
<h4>Find a main component at the assets panel</h4>
|
||||
<p>Select a main component at the viewport and then press "Show in assets panel" at the options of the right sidebar.</p>
|
||||
<figure>
|
||||
<video title="Show main component in the assets library" muted="" playsinline="" controls="" width="100%" poster="/img/components/components-show-asset.png" height="auto">
|
||||
<video title="Show main component in the assets library" muted="" playsinline="" controls="" width="100%" poster="/img/components/components-show-asset.webp" height="auto">
|
||||
<source src="/img/components/components-show-asset.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
@ -98,7 +98,7 @@ title: 10· Components
|
|||
<h4>Find a main component at the viewport</h4>
|
||||
<p>Select a component copy and then press "Show main component" at the viewport menu or the right sidebar menu.</p>
|
||||
<figure>
|
||||
<video title="Show main component" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-show-main.png" height="auto">
|
||||
<video title="Show main component" muted="" playsinline="" controls="" width="100%" poster="/img/components/components-show-main.webp" height="auto">
|
||||
<source src="/img/components/components-show-main.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
@ -110,24 +110,24 @@ title: 10· Components
|
|||
<li>Right click and select the option “Update main component” at the component menu. You can find this option at the viewport menu and at the sidebar menu.</li>
|
||||
</ol>
|
||||
<figure>
|
||||
<img src="/img/components/components-update.png" alt="Updating a main component from a copy" />
|
||||
<img src="/img/components/components-update.webp" alt="Updating a main component from a copy" />
|
||||
</figure>
|
||||
<p>If the component that is about to be updated is located in a different file which is connected to this file as a <a href="/user-guide/libraries/#shared-libraries">shared library</a>, a notification will be shown offering the options to update or dismiss.</p>
|
||||
<figure>
|
||||
<img src="/img/components/components-update-shared.png" alt="Prompt shown to update a main component that is in a shared library" />
|
||||
<img src="/img/components/components-update-shared.webp" alt="Prompt shown to update a main component that is in a shared library" />
|
||||
</figure>
|
||||
|
||||
<h3 id="component-overrides">Component overrides</h3>
|
||||
<p>Main components represent the more generic information of an element in a design system. You will usually need to change specific things (like a text, a color or an icon) in a component while maintaining the inheritance of the rest of it properties. Component overrides allows you to do that in Penpot.</p>
|
||||
<p>Overrides are modifications made in a specific copy that are not in its main component. With overrides you can keep changes at the component copies while maintaining synchronization with the Main component.</p>
|
||||
<figure>
|
||||
<img src="/img/components/components-overrides.png" alt="Components overrides" />
|
||||
<img src="/img/components/components-overrides.webp" alt="Components overrides" />
|
||||
</figure>
|
||||
|
||||
<h4>Reset overrides</h4>
|
||||
<p>Right click and select the option “Reset overrides” at the component menu to get it to the state of the Main component.</p>
|
||||
<figure>
|
||||
<video title="Reset component overrides" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-reset-overrides.png" height="auto">
|
||||
<video title="Reset component overrides" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-reset-overrides.webp" height="auto">
|
||||
<source src="/img/components/components-reset-overrides.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
@ -146,7 +146,7 @@ title: 10· Components
|
|||
</ol>
|
||||
<p class="advice"><strong>Tip:</strong> The first options shown to swap a component are the ones at the same level inside the assets library, so group them properly.</p>
|
||||
<figure>
|
||||
<video title="Swapping components at Penpot" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-swap.png" height="auto">
|
||||
<video title="Swapping components at Penpot" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-swap.webp" height="auto">
|
||||
<source src="/img/components/components-swap.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
@ -155,18 +155,18 @@ title: 10· Components
|
|||
<h3 id="component-annotate">Annotate components</h3>
|
||||
<p>You can add text annotations to main components. The annotations are shown in every component copy. It is extremely useful to attach specifications that can be read at each component copy.</p>
|
||||
<figure>
|
||||
<video title="Annotating components at Penpot" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-annotation.png" height="auto">
|
||||
<video title="Annotating components at Penpot" muted="" playsinline="" controls="" width="auto" poster="/img/components/components-annotation.webp" height="auto">
|
||||
<source src="/img/components/components-annotation.mp4" type="video/mp4">
|
||||
</video>
|
||||
</figure>
|
||||
|
||||
<p>The annotations are also shown at the <a href="/user-guide/inspect">Inspect tab</a>, as another option to improve communication between designers and developers.</p>
|
||||
<figure>
|
||||
<img src="/img/components/components-annotations-inspect.png" alt="Annotations at inspect tab" />
|
||||
<img src="/img/components/components-annotations-inspect.webp" alt="Annotations at inspect tab" />
|
||||
</figure>
|
||||
|
||||
<h3 id="component-main-components-page">Main components page</h3>
|
||||
<p>If you find a page at a file called "Main components" this will probably mean that the file had assets with the previous components system and has been migrated to the current components system. The previous system didn't have the components as layers at the design file, only at the assets library, so when migrating a file to the new version Penpot automatically creates a page where to place all the components, grouping them using the library groups structure.</p>
|
||||
<figure>
|
||||
<img src="/img/components/components-page-main.png" alt="Main components page" />
|
||||
<img src="/img/components/components-page-main.webp" alt="Main components page" />
|
||||
</figure>
|
||||
|
|