Files
payloadcms/test/live-preview/components/styles.css
Paul d826159fc0 fix(ui): add support back for custom live preview components (#14037)
Fixes https://github.com/payloadcms/payload/issues/13308

Adds support for a custom live preview component back, we previously
supported this and it was allowed via the config types but it wasn't
being rendered.

Now we export the `useLivePreviewContext` hook and the original
`LivePreviewWindow` component too so that end users can wrap the live
preview functionality with anything custom that they may need
2025-10-02 15:09:15 -04:00

14 lines
194 B
CSS

.custom-live-preview {
width: 80%;
display: none;
overflow: hidden;
&.custom-live-preview--is-live-previewing {
display: block;
}
.live-preview-window {
width: 100%;
}
}