Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trendmicro-frontend/react-breadcrumbs

React Breadcrumbs component
https://github.com/trendmicro-frontend/react-breadcrumbs

Last synced: 3 months ago
JSON representation

React Breadcrumbs component

Awesome Lists containing this project

README

        

# react-breadcrumbs [![build status](https://travis-ci.org/trendmicro-frontend/react-breadcrumbs.svg?branch=master)](https://travis-ci.org/trendmicro-frontend/react-breadcrumbs) [![Coverage Status](https://coveralls.io/repos/github/trendmicro-frontend/react-breadcrumbs/badge.svg?branch=master)](https://coveralls.io/github/trendmicro-frontend/react-breadcrumbs?branch=master)

[![NPM](https://nodei.co/npm/@trendmicro/react-breadcrumbs.png?downloads=true&stars=true)](https://nodei.co/npm/@trendmicro/react-breadcrumbs/)

React Breadcrumbs

Demo: https://trendmicro-frontend.github.io/react-breadcrumbs

## Installation

1. Install the latest version of [react](https://github.com/facebook/react) and [react-breadcrumbs](https://github.com/trendmicro-frontend/react-breadcrumbs):

```
npm install --save react @trendmicro/react-breadcrumbs
```

2. At this point you can import `@trendmicro/react-buttons` and its styles in your application as follows:

```js
import Breadcrumbs from '@trendmicro/react-breadcrumbs';

// Be sure to include styles at some point, probably during your bootstraping
import '@trendmicro/react-breadcrumbs/dist/react-breadcrumbs.css';
```

## Usage

```js
import React, { Component } from 'react';
import Anchor from '@trendmicro/react-anchor';
import Breadcrumbs from '@trendmicro/react-breadcrumbs';

class App extends Component {
render() {
return (


Devices


Firewall


Policies


);
}
}
```

You can add an icon on the right side, or add a line separator under the breadcrumbs.
```js


Devices


Firewall



```

## API

### Properties

#### Breadcrumbs



Name
Type
Default
Description




showLineSeparator
Boolean
false


#### Breadcrumbs.Item



Name
Type
Default
Description




active
Boolean
false


## License

MIT