Home / Templates / Speedwell / Components / Lightbox Wrapper

Lightbox Wrapper

src/components/lightbox-wrapper.tsx
'use client'
import clsx from 'clsx'
import { useRef } from 'react'
import { LightboxHandler } from '@/components/lightbox/lightbox-handler'
interface LightboxWrapperProps {
children: React.ReactNode
className?: string
}
export function LightboxWrapper({ children, className }: LightboxWrapperProps) {
const containerRef = useRef<HTMLDivElement>(null)
return (
<div
ref={containerRef}
className={clsx(className)}
>
{children}
<LightboxHandler containerRef={containerRef} />
</div>
)
}

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC