react-toolbox/components/app_bar
Robert Parker f8c1a3fd0d Update typings to external modules (no more 'declare module ...') to get the definitions working automatically with npm 2016-06-07 15:00:41 -07:00
..
AppBar.js Autoinject style for AppBar 2016-05-28 17:00:42 +02:00
_config.scss Added media-queries for the max-height of he app-bar on mobile devices (56dp and 48dp) 2016-05-26 09:57:45 +02:00
index.d.ts Update typings to external modules (no more 'declare module ...') to get the definitions working automatically with npm 2016-06-07 15:00:41 -07:00
index.js Autoinject style for AppBar 2016-05-28 17:00:42 +02:00
readme.md Autoinject style for AppBar 2016-05-28 17:00:42 +02:00
theme.scss Plain SASS imports 🎨 2016-06-04 22:06:59 +02:00

readme.md

App Bar

The app bar is a special kind of toolbar thats used for branding, navigation, search, and actions. Usually it contains controls on the right and left side and a title with the current section or app name. You should give the content with children elements.

import AppBar from 'react-toolbox/lib/app_bar';

const AppBarTest = () => (
  <AppBar fixed flat>
    <a href="/home">React Toolbox Docs</a>
    <Navigation />
  </AppBar>
);

If you want to provide a theme via context, the component key is RTAppBar.

Properties

Name Type Default Description
className String '' Set a class for the root component.
fixed Bool false Determine if the bar should have position fixed or relative.
flat Bool false If true, the AppBar shows a shadow.
theme Object null Classnames object defining the component style.

Theme

Name Description
appBar Used for the component root element.
fixed Added to the root element when the app bar is fixed.
flat Added to the root element when the app bar is flat.