feat: ViewTransitionWrapper shared component with stable react-dom fallback
Wraps children in React's ViewTransition (canary API) when available, falling back to Fragment in environments where ViewTransition is undefined (test env, stable react-dom). Add react/canary to tsconfig types to expose the ViewTransition component type.
This commit is contained in:
@@ -10,3 +10,4 @@ export { RichText } from './RichText';
|
||||
export type { ContainerSize, SectionBackground } from './Section';
|
||||
export { Container, Section } from './Section';
|
||||
export { TechStackBrick, TechStackGrid } from './TechStack';
|
||||
export { ViewTransitionWrapper } from './ViewTransitionWrapper';
|
||||
|
||||
Reference in New Issue
Block a user