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

# Overlay controls

> Design dialogs, drawers, and bottom sheets in Figma for correct detection 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 overlay design matters

Overlays like dialogs, drawers, and bottom sheets need to follow specific practices to be detected correctly during import.

<Frame caption="Example of an overlay control in a design">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/overlay-controls/overlay-control-example.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=391a7ca0b255eda72b51d371931dac51" alt="Overlay control example in Figma" className="theme-image" width="1916" height="690" data-path="images/build-docs/create/figma/figma-design-guidelines/overlay-controls/overlay-control-example.webp" />
</Frame>

<Divider />

## Requirements

When designing dialogs, drawers, and bottom sheets, include these three elements:

<Frame caption="Required overlay component structure">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/overlay-controls/overlay-component-requirements.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=7cd40e999bec90c0fa0a161f79f49317" alt="Three components needed for overlays" className="theme-image" width="1916" height="690" data-path="images/build-docs/create/figma/figma-design-guidelines/overlay-controls/overlay-component-requirements.webp" />
</Frame>

<Info>
  Common issues occur when overlays do not cover the screen fully, or when dialog edges extend beyond the screen bounds. Following the practices below ensures your overlay components are detected correctly.
</Info>

<Divider />

## Best practices

1. The overlay must **cover the screen completely**. If it does not, the dialog, drawer, or bottom sheet will not be detected.

2. Place the component in the correct position inside the overlay:
   * **Dialog** - exact center of the overlay
   * **Bottom sheet** - aligned to the bottom
   * **Drawer** - aligned to the left

3. Maintain the correct layer hierarchy:
   * Top: dialog, drawer, or bottom sheet
   * Below: the overlay layer
   * Bottom: everything else in the screen

<Divider />

## Reference designs

<Tabs>
  <Tab title="Dialog">
    <Frame caption="Dialog design example">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/overlay-controls/dialog-overlay-example.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=24e57cf415fecd5866559f663c0737c0" alt="Dialog overlay design" className="theme-image" width="1916" height="1000" data-path="images/build-docs/create/figma/figma-design-guidelines/overlay-controls/dialog-overlay-example.webp" />
    </Frame>
  </Tab>

  <Tab title="Drawer">
    <Frame caption="Drawer design example">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/overlay-controls/drawer-overlay-example.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=12aa2c7e2f8799aad2f786416c91d64b" alt="Drawer overlay design" className="theme-image" width="1916" height="1000" data-path="images/build-docs/create/figma/figma-design-guidelines/overlay-controls/drawer-overlay-example.webp" />
    </Frame>
  </Tab>

  <Tab title="Bottom sheet">
    <Frame caption="Bottom sheet design example">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/overlay-controls/bottom-sheet-overlay-example.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=854dc2086d2665a3f13caa1382f0bf6f" alt="Bottom sheet overlay design" className="theme-image" width="1916" height="1000" data-path="images/build-docs/create/figma/figma-design-guidelines/overlay-controls/bottom-sheet-overlay-example.webp" />
    </Frame>
  </Tab>
</Tabs>

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