Skip to content

Latest commit

 

History

History
96 lines (80 loc) · 3.18 KB

README.md

File metadata and controls

96 lines (80 loc) · 3.18 KB

Custom React Electron Titlebar

React Package Add Custom Title Bar To Electrons Apps

Table of Contents

About The Project

Package Provide A Title Bar Component To View On Electron Apps

Built With

ReactJs

Getting Started

Installation

npm install custom-react-electron-titlebar --save

Usage

import 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 }/>)}

Props

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

Contact