# react-titlebar-osx **Repository Path**: mirrors_bokuweb/react-titlebar-osx ## Basic Information - **Project Name**: react-titlebar-osx - **Description**: Custom title bar for electron using React - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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 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.