fix: apply authored presentation stage themes
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import type { ReactNode } from "react";
|
||||
import type { StageTheme } from "./storyboard.js";
|
||||
|
||||
type PresentationCanvasProps = { readonly children: ReactNode };
|
||||
type PresentationCanvasProps = {
|
||||
readonly children: ReactNode;
|
||||
readonly stageTheme?: StageTheme;
|
||||
};
|
||||
|
||||
export const PresentationCanvas = ({ children }: PresentationCanvasProps) => (
|
||||
export const PresentationCanvas = ({ children, stageTheme = "paper" }: PresentationCanvasProps) => (
|
||||
<div className="presentation-viewport">
|
||||
{/*
|
||||
Keep the presentation as normal responsive DOM instead of scaling the
|
||||
@@ -13,6 +17,7 @@ export const PresentationCanvas = ({ children }: PresentationCanvasProps) => (
|
||||
<div
|
||||
className="presentation-canvas"
|
||||
data-testid="presentation-canvas"
|
||||
data-stage-theme={stageTheme}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user