How to use electron-react-titlebar - 1 common examples

To help you get started, we’ve selected a few electron-react-titlebar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github compactd / compactd / client / src / renderer / TitleBar / TitleBar.tsx View on Github external
import * as React from "react";
const WinTitleBar = require('electron-react-titlebar').TitleBar as any;
const OSXTitlebar = require('react-desktop/src/titleBar/macOs/titleBar').default;
import * as PropTypes from 'prop-types';
import { Icon } from "@blueprintjs/core";
import {remote} from 'electron';
import * as classNames from 'classnames';

export class TitleBar extends React.Component<{origin: URL, dark: boolean, onOriginClick: Function}> {
  renderOriginMenu () {
    return <div> this.props.onOriginClick()}&gt;
  renderWindows () {


A github desktop style title bar component for electron.

Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Popular electron-react-titlebar functions