0.2.1 • Published 5 months ago

@electron-wm/react-titlebar v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@electron-wm/react-titlebar

A frame window titlebar component implementation for the electron-wm window manager.

Usage

Use the TitleBar component within your window frame component.

import {
  TitleBar,
  TitleBarCloseButton,
  TitleBarIcon,
  TitleBarMaximizeButton,
  TitleBarMinimizeButton,
  TitleBarText,
} from "@electron-wm/react-titlebar";

export default () => {
  return (
    <WindowFrame>
      <TitleBar>
        <TitleBarIcon />
        <TitleBarText />
        <TitleBarMinimizeButton />
        <TitleBarMaximizeButton />
        <TitleBarCloseButton />
      </TitleBar>
      <WindowClientArea />
    </WindowFrame>
  );
};