Skip to content

justbetter/statamic-component-preview

Repository files navigation

Component Preview

How to Install

composer require justbetter/component-preview

Make sure to create a folder component-previews in your public folder, it is possible to define a different folder in your public directory by changing the COMPONENT_PREVIEW_IMAGE_FOLDER ENV variable. You can upload your component screenshots in this folder.

When adding the Preview component to a set in a replicator you can choose from one of the images uploaded in the /public/component-previews folder.