diff --git a/docs/img/variants/01-variants-create.webp b/docs/img/variants/01-variants-create.webp new file mode 100644 index 0000000000..fe757e60c2 Binary files /dev/null and b/docs/img/variants/01-variants-create.webp differ diff --git a/docs/img/variants/02-variants-created.webp b/docs/img/variants/02-variants-created.webp new file mode 100644 index 0000000000..a11b3abf1d Binary files /dev/null and b/docs/img/variants/02-variants-created.webp differ diff --git a/docs/img/variants/03-variants-property-add.webp b/docs/img/variants/03-variants-property-add.webp new file mode 100644 index 0000000000..c41f78e445 Binary files /dev/null and b/docs/img/variants/03-variants-property-add.webp differ diff --git a/docs/img/variants/04-variants-properties-edit.webp b/docs/img/variants/04-variants-properties-edit.webp new file mode 100644 index 0000000000..f71d194135 Binary files /dev/null and b/docs/img/variants/04-variants-properties-edit.webp differ diff --git a/docs/img/variants/05-variants-use.webp b/docs/img/variants/05-variants-use.webp new file mode 100644 index 0000000000..51eaf1c1e2 Binary files /dev/null and b/docs/img/variants/05-variants-use.webp differ diff --git a/docs/img/variants/06-variants-combine.webp b/docs/img/variants/06-variants-combine.webp new file mode 100644 index 0000000000..fa4103568e Binary files /dev/null and b/docs/img/variants/06-variants-combine.webp differ diff --git a/docs/img/variants/variants-connections-conditions.png b/docs/img/variants/variants-connections-conditions.png new file mode 100644 index 0000000000..1cb504e19b Binary files /dev/null and b/docs/img/variants/variants-connections-conditions.png differ diff --git a/docs/user-guide/components/index.njk b/docs/user-guide/components/index.njk index 6aa8ba78c6..ecd68c7ab8 100644 --- a/docs/user-guide/components/index.njk +++ b/docs/user-guide/components/index.njk @@ -7,19 +7,20 @@ desc: Streamline your design workflow with Penpot's Components guide! Learn to c

Speed your workflow with the reusable power of components.

A component is an object or group of objects that can be reused multiple times across files. This can help you maintain consistency across a group of designs.

-

A component has two parts:

+

Components basics

+

A component consists of two elements:

Components main and copy
Mains and copies have different icons. Mains also have a title header at the viewport.

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.

-

Creating components

-

Create a component

+

Create components

+

Create a component

  1. Select an object or a group of them.
  2. Press Ctrl + K or right click and select the option “Create component” at the object menu.
  3. @@ -30,10 +31,10 @@ desc: Streamline your design workflow with Penpot's Components guide! Learn to c -

    Duplicate a component

    +

    Duplicate a component

    You can duplicate a component the same way you can duplicate any other layer. When duplicating a component, you are creating a component copy that will be linked to its main component.

    -

    Duplicate as main component

    +

    Duplicate as main component

    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".

    -

    Delete a main component

    +

    Delete a main component

    You can delete main components and its copies anytime the same way you can delete any other layer.

    Deleting a main component at the viewport means deleting it at the assets library and viceversa, so be careful!

    @@ -50,7 +51,7 @@ desc: Streamline your design workflow with Penpot's Components guide! Learn to c
    -

    Restore a main component

    +

    Restore a main component

    If a main component has been deleted and you have access to a copy of it, you can use the copy to restore its main. There are two ways to do it: