• Provides a draggable window region with minimize, maximize, and close buttons for Electron windows.

    Parameters

    • title: DragWindowRegionProps

      Optional title to display in the draggable region (can be a string or ReactNode)

    Returns Element

    A React element containing the draggable region and window control buttons

    <DragWindowRegion title="My App" />
    
    export default function DragWindowRegion({ title }: DragWindowRegionProps) {
    return (
    <div className="flex w-screen items-stretch justify-between">
    <div className="draglayer w-full">
    {title && (
    <div className="flex flex-1 p-2 text-xs whitespace-nowrap text-gray-400 select-none">
    {title}
    </div>
    )}
    </div>
    <WindowButtons />
    </div>
    );
    }