Table of Contents
Package Provide A Title Bar Component To View On Electron Apps
npm install custom-react-electron-titlebar --saveimport TitleBar from "custom-react-electron-titlebar"
..
..
..
render(){
let options = {
backgroundColor: "#000",
iconsColor: "#FFF",
title: "To Do List",
titleColor: "#FFF",
icon: true,
closeIconClass: "fa fa-times",
maximizeIconClass: "fa fa-square-o",
minimizeIconClass: "fa fa-minus"
}
return(<TitleBar options = { options }/>)}| Prop Name | Description | Type |
|---|---|---|
| backgroundColor | background of titlebar | String |
| iconsColor | Color Of FontAwesome Icons | String |
| title | Title Of Project | String |
| titleColor | Color Of Project Title | String |
| icon | true Or false (get icon href from index.html) | Boolean |
| closeIconClass | fontAwesome class of close icon | String |
| maximizeIconClass | fontAwesome class of maximize icon | String |
| minimizeIconClass | fontAwesome class of minimize icon | String |
