@electron-wm/react-titlebar
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

@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>
  );
};

Readme

Keywords

none

Package Sidebar

Install

npm i @electron-wm/react-titlebar

Weekly Downloads

4

Version

0.2.1

License

MIT

Unpacked Size

39.7 kB

Total Files

25

Last publish

Collaborators

  • wnayes