GithubHelp home page GithubHelp logo

fbfeix / react-appdrawer Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 126 KB

A simple react component which acts as application container with sidebar etc.

License: MIT License

JavaScript 99.48% CSS 0.47% HTML 0.05%

react-appdrawer's Introduction

react-appdrawer Build Statuscodecov

A simple react component which acts as application container with sidebar

Please be aware of the fact that this component isn't finished yet.

Install

$ npm install react-appdrawer

Usage

import AppDrawer from 'react-appdrawer';

let app = <AppDrawer title="My App" >Content</AppDrawer>;

The AppDrawer depends on styles provided in style/AppDrawer.scss to allow toggling the sidebar, so add it to your application too or provide your own style.

Sidebar Orientation

Provide (custom) classes to determine the orientation of your sidebar:

/* provided by style/AppDrawer.scss */
sidebar-left {
    /*...*/
}

/* provided by style/AppDrawer.scss */
sidebar-right {
    /*...*/
}

/* custom direction */
sidebar-top {
    /*...*/
}

Please also be aware of the fact that you have to provide the class "sidebar-item" in your custom sidebar styles if you want any animation.

License

MIT © Felix Astner [email protected] (http://felixastner.com)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.