1.1.1 • Published 5 years ago

react-windows-controls v1.1.1

Weekly downloads
222
License
MIT
Repository
github
Last release
5 years ago

react-windows-controls

Windows 10 title bar control buttons for React.

Installation

To install this package, just run

$ npm install react-windows-controls

Quick example

import { remote } from 'electron';
import { WindowsControls } from 'react-windows-controls';

export default () => (
  <WindowsControls isMaximized={remote.getCurrentWindow().isMaximized()} />
);

Components

<WindowsControls />

  • dark boolean - whether to invert icons colors
  • onClose Function - on close button click event
  • isMaximized boolean - whether to show the restore button
  • onMaximize Function - on maximize button click event
  • onMinimize Function - on minimize button click event
  • onMouseUp Function
  • onMouseDown Function
  • style any

<WindowsControl />

  • maximize boolean - whether the button is a maximize button
  • close boolean - whether the button is a close button
  • minimize boolean - whether the button is a minimize button
  • restore boolean - whether the button is a restore button
  • whiteIcon boolean - whether to invert icon color
  • onClick Function
  • onMouseUp Function
  • onMouseDown Function
  • style any
1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago