react-toolbox/components/navigation
Nathan Marks f3d047e820 Remove jsx extension from component index files, replace with js 2015-11-22 17:49:46 -05:00
..
Navigation.jsx Rename most components index to actual components 2015-11-22 21:41:28 +01:00
_config.scss Remove all `unquote` calls 2015-11-19 12:21:51 +01:00
index.js Remove jsx extension from component index files, replace with js 2015-11-22 17:49:46 -05:00
readme.md Change button properties and support toggle icon buttons 2015-11-17 21:49:27 +01:00
style.scss Add slider documentation 2015-11-01 14:14:36 +01:00

readme.md

Navigation

This component is intended to be a common wrapper for a group of links or buttons. It sets a minimal layout, semantic markup and spacing for each of those elements.

import Navigation from 'react-toolbox/lib/navigation';

const links = [
  { href: 'http://', icon: 'person', label: 'Profile' },
  { href: 'http://', icon: 'inbox', label: 'Inbox'}
];

const actions = [
  { label: 'Alarm', raised: true, icon: 'access-alarm'},
  { label: 'Location', raised: true, accent: true, icon: 'room'}
];

const NavigationTest = () => (
  <div>
    <Navigation type='horizontal' actions={actions} />
    <Navigation type='horizontal' routes={links} />
  </div>
);

Properties

Name Type Default Description
actions Array Array of objects that represent buttons so the keys will be transferred as properties to those.
className String Set a custom class styles to style the navigation.
routes Array Array of objects similar to actions but that will be rendered as <Link/> component definition.
type String horizontal Type of the navigation, it can be vertical or horizontal.