# Block previews - Sage 10 + ACF Composer

**URL:** https://discourse.roots.io/t/block-previews-sage-10-acf-composer/26522
**Category:** sage
**Tags:** acf-composer, acf
**Created:** 2024-01-09T23:14:10Z
**Posts:** 3

## Post 1 by @Harry_Gardiner — 2024-01-09T23:14:10Z

As the title suggest I am using sage 10 with ACF Composer.

See the following [link](https://github.com/Log1x/acf-composer?tab=readme-ov-file#generating-a-block) for an example of how to add a custom block. Its not detailed in the docs but there is a block preview that can be generated by adding some data. It works if I give it dummy data that matches the fields() section, however I want to pass the preview and image url.

```
/**
     * The block preview example data.
     *
     * @var array
     */
    public $example = [
        'attributes' => [
            'mode' => 'preview',
            'data' => [
                'preview_image' => 'https://via.placeholder.com/1500x500',
            ],
        ],
    ];
```

My current attempt does not work.

Anyone had any success adding preview images?

Thanks in advance.

---

## Post 2 by @AlexHay — 2024-01-10T23:23:56Z

Are you referring to the preview popup that appears when you hover over a block tile? If so, I don’t believe you can pass an image value to it as it’s dynamically generated based on your block markup.

---

## Post 3 by @Harry_Gardiner — 2024-01-11T08:16:32Z

Yep, that preview.

Was hoping an image would work. Will pass it markup instead. Thanks
