@@ -11,6 +11,7 @@ import {
1111 useZIndexBase ,
1212} from "@stackflow/react-ui-core" ;
1313import { assignInlineVars } from "@vanilla-extract/dynamic" ;
14+ import clsx from "clsx" ;
1415import { createContext , useContext , useMemo , useRef } from "react" ;
1516import { useGlobalOptions } from "../basicUIPlugin" ;
1617import type { GlobalVars } from "../basicUIPlugin.css" ;
@@ -48,6 +49,7 @@ export type AppScreenProps = Partial<
4849 preventSwipeBack ?: boolean ;
4950 CUPERTINO_ONLY_modalPresentationStyle ?: "fullScreen" ;
5051 ANDROID_ONLY_activityEnterStyle ?: "slideInLeft" ;
52+ className ?: string ;
5153 children : React . ReactNode ;
5254} ;
5355const AppScreen : React . FC < AppScreenProps > = ( {
@@ -58,6 +60,7 @@ const AppScreen: React.FC<AppScreenProps> = ({
5860 preventSwipeBack,
5961 CUPERTINO_ONLY_modalPresentationStyle,
6062 ANDROID_ONLY_activityEnterStyle,
63+ className,
6164 children,
6265} ) => {
6366 const globalOptions = useGlobalOptions ( ) ;
@@ -231,12 +234,7 @@ const AppScreen: React.FC<AppScreenProps> = ({
231234 >
232235 < div
233236 ref = { appScreenRef }
234- className = { css . appScreen ( {
235- transitionState :
236- transitionState === "enter-done" || transitionState === "exit-done"
237- ? transitionState
238- : lazyTransitionState ,
239- } ) }
237+ className = { clsx ( css . appScreen ( { transitionState } ) , className ) }
240238 style = { assignInlineVars (
241239 compactMap ( {
242240 [ globalVars . backgroundColor ] : backgroundColor ,
0 commit comments