# react-titlebar-osx

> osx controls to use on electron with react

Latest version **1.1.0** (published 2017-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-titlebar-osx
pnpm add react-titlebar-osx
yarn add react-titlebar-osx
bun add react-titlebar-osx
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-01-07 |
| First published | 2016-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Gonzalo Santome |
| Maintainers | santomegonzalo |
| Keywords | reactjs, react-component, react, electron, osx, titlebar |

## Links

- npm: https://www.npmjs.com/package/react-titlebar-osx
- Repository: https://github.com/santomegonzalo/react-titlebar-osx
- Homepage: https://github.com/santomegonzalo/react-titlebar-osx#readme
- Issues: https://github.com/santomegonzalo/react-titlebar-osx/issues
- npm.io page: https://npm.io/package/react-titlebar-osx

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^15.3.2
- [react-dom](https://npm.io/package/react-dom.md) ^15.3.2
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [defaultcss](https://npm.io/package/defaultcss.md) ^1.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-01-07
- 1.0.5 — 2017-01-01
- 1.0.4 — 2017-01-01
- 1.0.3 — 2016-12-31
- 1.0.2 — 2016-12-31
- 1.0.0 — 2016-12-31

## README

# react-titlebar-osx

Emulate OS X window *titlebar* using **ES6** and **React**. Extracted from [kapetan/titlebar](https://github.com/kapetan/titlebar).

## demo
```
npm run demo-dev
```

## how looks

![Example how looks](https://github.com/santomegonzalo/react-titlebar-osx/raw/master/bar-example.png "Real example")

## how to use it

```
npm install --save react-titlebar-osx
```

```javascript
import { Titlebar } from 'react-titlebar-osx';
```

```javascript
<Titlebar
   text="Awesome tool"
   draggable={true}
   onClose={() => this.handleClose()}
   onMaximize={() => this.handleMaximize()}
   onFullscreen={() => this.handleFullscreen()}
   onMinimize={() => this.handleMinimize()}
/>
```

## props

- `draggable` (default `false`): Enable dragging.
- `transparent` (default `false`): Transparent background.
- `text`: Enable centered text.
- `padding`: Add more space to the top and bottom.
- `onClose`: (required) called when close is clicked.
- `onMinimize`: (required) called when minimized is clicked.
- `onMaximize`: (required) called when maximize is clicked.
- `onFullscreen`: (required) called when fullscreen is clicked.

---
_Source: https://npm.io/package/react-titlebar-osx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
