All Projects → lgkonline → react-bootstrap-ribbon

lgkonline / react-bootstrap-ribbon

Licence: MIT license
A ribbon menu inspired by Microsoft for React using Bootstrap

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to react-bootstrap-ribbon

qt-ribbon
A ribbon bar implementation for Qt widgets applications
Stars: ✭ 43 (+79.17%)
Mutual labels:  ribbon, ribbon-interface
phoenix bootstrap form
Bootstrap 4 Forms for Phoenix/Elixir Applications
Stars: ✭ 38 (+58.33%)
Mutual labels:  bootstrap4
mvp-docs
The Unofficial MVP Contribution Guide:
Stars: ✭ 18 (-25%)
Mutual labels:  microsoft
shopify-bootstrap-theme
Our Free Shopify Theme focused on simplicity, speed, and user experience. Download it today and finish your Shopify store within days, not months. Powered by Bootstrap v5 framework and 15+ years of coding experience.
Stars: ✭ 45 (+87.5%)
Mutual labels:  bootstrap4
bs-breakpoints
A plugin which detect Bootstrap 4 breakpoints and emit when there is a change
Stars: ✭ 22 (-8.33%)
Mutual labels:  bootstrap4
loopback3 angular6 bootstrap4
API Rest build by Loopback. Frontend on Angular 6
Stars: ✭ 26 (+8.33%)
Mutual labels:  bootstrap4
ostora-jsapi4
Responsive template for building web mapping applications
Stars: ✭ 20 (-16.67%)
Mutual labels:  bootstrap4
Bootstrap4-RTL
🅱 An Awesome RTL bootstrap 4 with gulp and postcss
Stars: ✭ 89 (+270.83%)
Mutual labels:  bootstrap4
there-are-lots-of-people-in-Baiyun-airport
挑战杯 - 广州白云机场人流量时空分布预测系统 - 前端
Stars: ✭ 14 (-41.67%)
Mutual labels:  bootstrap4
WooCommerceConnector
A Power BI Custom Connector for WooCommerce
Stars: ✭ 27 (+12.5%)
Mutual labels:  microsoft
JetEntityFrameworkProvider
Microsoft Access (Jet) Entity Framework provider
Stars: ✭ 77 (+220.83%)
Mutual labels:  microsoft
startbootstrap-full
A full page image background Bootstrap HTML template created by Start Bootstrap
Stars: ✭ 54 (+125%)
Mutual labels:  bootstrap4
Windows-Whistler
A port of the Whistler theme that eventually got replaced by Luna in Windows 2001 (XP)
Stars: ✭ 24 (+0%)
Mutual labels:  microsoft
microservices-v8
Learn Microservices with Spring Boot - v8
Stars: ✭ 32 (+33.33%)
Mutual labels:  ribbon
visualize-dna-sequences
Visualizing DNA Sequences via Javascript
Stars: ✭ 51 (+112.5%)
Mutual labels:  bootstrap4
avz
🔑 AVZ: Social Authorization
Stars: ✭ 43 (+79.17%)
Mutual labels:  microsoft
Script-Help
📝 This VSTO Add-In is used for cleaning & creating a script for batch loading records into SQL Server, Oracle, Documentum, Markup or Markdown Languages. The functionality within the ribbon allows a quick way of preparing a bulk data load. Otherwise, the requests can be both time-consuming and error prone. It is written in 3 different versions a…
Stars: ✭ 65 (+170.83%)
Mutual labels:  ribbon
website
The sustainoss.org website
Stars: ✭ 23 (-4.17%)
Mutual labels:  bootstrap4
tetrio-bot-docs
Documentation for TETR.IO's network protocol and other details aiding in the creation of standalone bots.
Stars: ✭ 27 (+12.5%)
Mutual labels:  ribbon
PowerPlatformAF
Power Platform Adoption Framework
Stars: ✭ 97 (+304.17%)
Mutual labels:  microsoft

React Bootstrap Ribbon

Get a Microsoft inspired Ribbon menu for your React app. It uses Bootstrap 4 components.
Find React Bootstrap Ribbon on NPM.

npm version

Desktop preview

Ribbon menu on desktop

Mobile preview

Ribbon menu on mobile

Installation

Add it with NPM:
npm i -S react-bootstrap-ribbon

After that you can import the components:
import {Ribbon, RibbonGroup, RibbonGroupItem, RibbonButton} from "react-bootstrap-ribbon";

Make sure you also embed the CSS:
import "react-bootstrap-ribbon/dist/react-bootstrap-ribbon.css";

Usage

Your code could look like this:

import React, { Component } from "react";
import { Ribbon, RibbonGroup, RibbonGroupItem, RibbonButton } from "react-bootstrap-ribbon";

// In this example Bootsrap is installed via NPM. Here it gets imported from the "./node_modules" folder:
import "bootstrap/dist/css/bootstrap.css";
import "react-bootstrap-ribbon/dist/react-bootstrap-ribbon.css";

class App extends Component {
    render() {
        return (
            <div className="container">
                {/* 
                    `breakpoint` prop is optional and defines when to switch between mobile and desktop view. 
                    Possible values: "sm", "md", "lg", "xl", default: "md"
                    `height` is also optional. Default is "8rem".
                */}
                <Ribbon breakpoint="lg" height="8rem">
                    <RibbonGroup title="Clipboard" colClass="col-3">
                        <RibbonGroupItem colClass="col-4" onClick={() => alert("Hello from Ribbon button!")}>
                            <RibbonButton>
                                ✏️
                                <div>Edit</div>
                            </RibbonButton>
                        </RibbonGroupItem>

                        {/* more Ribbon group items */}
                    </RibbonGroup>

                    {/* more Ribbon groups */}
                </Ribbon>
            </div>
        );
    }
}

export default App;

Run an example

Clone this repo on your PC. After that install all dependencies with npm i.
Then run npm start and you should see the example in your browser. You can see the code under ./docs/src/index.js.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].