Optional title to display in the draggable region (can be a string or ReactNode)
A React element containing the draggable region and window control buttons
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>
);
}
Provides a draggable window region with minimize, maximize, and close buttons for Electron windows.