Socket
Book a DemoInstallSign in
Socket

react-minimalist-toolbar

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-minimalist-toolbar

React Minimalist Toolbar

1.0.6
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

react-minimalist-toolbar

A Minimalist toolbar react component

Image of toolbar

Image of toolbar

Install

npm install --save react-minimalist-toolbar

Import

import Toolbar from 'react-minimalist-toolbar'

Example

import Toolbar from 'react-minimalist-toolbar'

//...

newFile(){
    //open new file here
}
//implement all callback functions

//...

newFile(){
    //create file methods
}

openFile(){
    //open modal ...
}

//...

render() {
    
    var menu = [
        {
            text: "file",
            items: [
            {
                text: "New",
                callback: this.newFile
            },
            {
                text: "Open",
                callback: this.openFile
            }
            ]
        },
        {
            text: "edit",
            items: [
            {
                text: "Undo",
                callback: this.undo
            },
            {
                text: "Redo",
                callback: this.redo
            }
            ]
        },
    ];
        
        return (
             <Toolbar menu={menu} logo={logo}  brand="React-Minimalist-Toolbar"></Toolbar>
        );
        
}

##Customizing The UI components can be customized by overwriting css classes:(see lib/index.css)


    :root {
        --main-color: #000;
        --main-color-high:#222;
        --text-color:#cccccc;
        --text-hover: #fff;
    }

    .minimalist-toolbar{

    }
    .minimalist-toolbar .dropdown{

    }
    .minimalist-toolbar .dropdown-content{

    }

Contributing

There are still many things to be added to this component, e.g. svg icons for each option or shortcuts.

This component was created using Yeoman Generator : generator-create-react-component:

npm install -g yo
npm install -g generator-create-react-component

create a new component:

yo create-react-component

Storyboard

This component has storyboard -- check it to see an example of how to use this component. To do that clone this repository:

npm install
npm start

FAQs

Package last updated on 27 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.