0.1.6 • Published 6 years ago

material-ui-breadcrumbs v0.1.6

Weekly downloads
20
License
MIT
Repository
github
Last release
6 years ago

material-ui-breadcrumbs

Material-UI Breadcrumbs

Breadcrumbs component for React integrated with material-ui package.

Requirements

  • React 16.2.0 (not tested on other versions)
  • Material-UI 0.20.0 (not tested on other versions)

Required Knowledge

I recommend that you get to know React and Material-UI.

Installation

npm i material-ui-breadcrumbs --save

or

yarn add material-ui-breadcrumbs

Usage

Once installed, just import and use the component:

import React from 'react';
import {Breadcrumbs} from 'material-ui-breadcrumbs/Breadcrumbs';

const className = 'custom-class';
const style = {
  width: '50%',
  height: '48px',
};

export const Example = () => (
  <Breadcrumbs
    className={className}
    style={style}
    transparentBackground={true}
  />
);

export default Example;

Properties

PropsOptionsDefaultDescription
classNameString''Adds custom class to breadcrumbs container.
styleObject{}Adds custom inline styles to breadcrumbs container.
itemClassNameString''Adds custom class to breadcrumbs item.
itemStyleObject{}Adds custom inline styles to breadcrumbs item.
activeItemClassNameString''Adds custom class to active breadcrumbs item.
activeItemStyleObject{}Adds custom inline styles to active breadcrumbs item.
separatorClassNameString''Adds custom class to breadcrumbs separator.
separatorStyleObject{}Adds custom inline styles to breadcrumbs separator.
separatorReactElementnullAdds custom breadcrumbs separator element.
transparentBackgroundbooleanfalsesets no background to breadcrumbs container.
customBackgroundClassNameString''Adds custom class to custom breadcrumbs container.
customBackgroundStyleObject{}Adds custom inline styles to custom breadcrumbs container.
customBackgroundReactElementnullAdds custom breadcrumbs container element.
currentStepstringnullsets current active breadcrumb link.
steps{label: string; uri: string;}[]sets breadcrumb links list.

Contribute

  1. Submit an issue
  2. Fork the repository
  3. Create a dedicated branch (never ever work in master)
  4. The first time, run command: yarn into the directory
  5. Fix bugs or implement features

Future

  • Add tests
  • Add examples

License

This project is licensed under the terms of the MIT license