react-toolbox/components/navigation
@soyjavi 2423d09a4f Rename component doc to readme.md 2015-10-28 22:09:09 +07:00
..
_config.scss Setup new file structure for sass files 2015-10-20 21:15:21 +02:00
index.jsx use es6 classes & remove react-addons-pure-render-mixin 2015-10-20 13:40:51 +08:00
readme.md Rename component doc to readme.md 2015-10-28 22:09:09 +07:00
style.scss Move the rest of components important property values to variables 2015-10-21 02:05:19 +02:00

readme.md

Navigation

var Navigation = require('react-toolbox/components/navigation');
var routes = [
  {route:'/profile/soyjavi', icon='user'},
  {route:'http://google.com', caption='Go to Google.com'},
];
var actions = [
 {caption: "Primary", style: "primary", icon: "access_alarm"}
];

<Navigation routes={routes} actions={actions} />

Properties

Name Type Default Description
actions Array Array of actions callbacks using component definition.
className String Sets the class-styles of the Component.
routes Array Array of URL String using component definition.
type String "normal" Type of the component, overwrite this property if you need set a different stylesheet.