Renders its children inside a same-origin iframe, so they are styled only by css and whatever they render, never
by the page's stylesheets, and the reverse. The children stay in the page's React tree, so context, state, and
events work as anywhere else. Styled popups opened inside portal into the frame's body, and the frame follows the
page's colour mode and has the app chrome variables, so themes using light-dark(), .dark or the app chrome look
the same as on the page.
It is how a theme is previewed while the page around it keeps its own theme, as @practic/bui-theme-editor does.
Renders its children inside a same-origin iframe, so they are styled only by
cssand whatever they render, never by the page's stylesheets, and the reverse. The children stay in the page's React tree, so context, state, and events work as anywhere else. Styled popups opened inside portal into the frame's body, and the frame follows the page's colour mode and has the app chrome variables, so themes usinglight-dark(),.darkor the app chrome look the same as on the page.It is how a theme is previewed while the page around it keeps its own theme, as
@practic/bui-theme-editordoes.