> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rocket.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Group components and layers

> Organize Figma layers and component hierarchies for cleaner imports in Rocket.new's Figma-to-code pipeline.

export const LlmsDirective = () => <blockquote className="llms-directive">
    For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.
    For a lightweight markdown version of this page, append .md to the URL.
  </blockquote>;

<LlmsDirective />

## Why grouping matters

Everything in a screen design is made up of layers. When those layers are properly grouped, Rocket can generate better, more accurate results. [Groups](https://www.figma.com/best-practices/groups-versus-frames/) reduce clutter by combining related components into fewer layers, and they auto-adjust when child objects are resized.

<Frame caption="Grouped components example">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/group-components-and-layers/grouped-components-example.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=b145f151fe4ca013dddcf5e5ef399965" alt="Example of grouping layers in Figma" className="theme-image" width="1916" height="1192" data-path="images/build-docs/create/figma/figma-design-guidelines/group-components-and-layers/grouped-components-example.webp" />
</Frame>

<Divider />

## How to group effectively

* Combine related elements like **background images, buttons, or text** into a single group.
* Maintain a clear hierarchy order inside groups.
* Use groups to simplify layering across your design, making components easier to manage and reuse.

<Frame caption="Example of an ungrouped design">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/group-components-and-layers/ungrouped-design-example.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=300f2c546610c416512aeb2c7e56999a" alt="Ungrouped design example" className="theme-image" width="1916" height="1192" data-path="images/build-docs/create/figma/figma-design-guidelines/group-components-and-layers/ungrouped-design-example.webp" />
</Frame>

<Info>
  Avoid ungrouped designs. Proper grouping helps Rocket identify and map your components accurately during import.
</Info>

<Divider />

## Example

In an e-commerce shopping list screen:

<Steps>
  <Step title="Start with a background image">
    Place the background image as the base layer.
  </Step>

  <Step title="Add components">
    Add product image, title, description, and price on top.
  </Step>

  <Step title="Group them together">
    Layer them properly, then group them into one element.
  </Step>
</Steps>

This creates a clean hierarchy that is easy to manage and generates accurately in Rocket.

<Frame caption="Grouped e-commerce components example">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/group-components-and-layers/grouped-vectors-example.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=ebc96d6f7c2e22b8bfe150b082486b4b" alt="Example of properly grouped e-commerce components in Figma" className="theme-image" width="1916" height="1192" data-path="images/build-docs/create/figma/figma-design-guidelines/group-components-and-layers/grouped-vectors-example.webp" />
</Frame>

<Divider />

<Card horizontal title="Back to guidelines" icon="arrow-left" href="/build/create/figma/figma-design-guidelines/overview">
  See all design guidelines for preparing your Figma files.
</Card>

***

## What's next?

<CardGroup cols={2}>
  <Card title="Figma import" icon="figma" href="/build/create/figma/overview">
    Learn how to import your Figma design into Rocket.
  </Card>

  <Card title="Build from an idea" icon="lightbulb" href="/build/create/from-an-idea">
    Start a project from a text prompt instead of a design file.
  </Card>
</CardGroup>
