react-toolbox/components/app_bar
Javi Velasco cd83d8341f Add themed key for avatar and appbar in readme 2016-05-16 14:18:30 +02:00
..
AppBar.js 😥 2016-05-15 13:36:13 +02:00
_config.scss Added !default to all config values as per #424 2016-04-02 00:47:39 +02:00
index.js Remove jsx extension from imports in components 2015-11-28 20:24:46 +01:00
readme.md Add themed key for avatar and appbar in readme 2016-05-16 14:18:30 +02:00
theme.scss Add themr to AppBar 2016-05-15 13:23:55 +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';
import theme from 'react-toolbox/lib/app_bar/theme';

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

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.

Theming

You can take a look to the _config.scss variables. The themed key for this component is ToolboxAppBar, it should implement the following interface:

Name Description
appBar Root class.
fixed Implemented when the app bar is fixed.
flat Implemented when the app bar is flat.