Skip to content

Windows Window Controls

import { startWindowsWindowControls } from "webotron/plugins/windows-window-controls";
  • startWindowsWindowControls(view, options?)
const controls = await startWindowsWindowControls(view, {
title: "webotron",
showMinimizeButton: true,
showMaximizeButton: true,
});
await controls.stop();
OptionTypePurpose
titlestringTitle text shown in custom controls area.
handleHeightPxnumberDrag handle height.
topOffsetPxnumberTop offset for control region.
showMinimizeButtonbooleanShow/hide minimize control.
showMaximizeButtonbooleanShow/hide maximize control.
  • Adds minimize and maximize control.
  • Supports custom title bar behavior and drag handling.
  • Targets Windows-specific scenarios only.