Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trendmicro/react-breadcrumbs

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trendmicro/react-breadcrumbs

Trend Micro Components: React Breadcrumbs

  • 0.5.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
324
decreased by-7.69%
Maintainers
2
Weekly downloads
 
Created
Source

react-breadcrumbs build status Coverage Status

NPM

React Breadcrumbs

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

Installation

  1. Install the latest version of react and react-breadcrumbs:
npm install --save react @trendmicro/react-breadcrumbs
  1. At this point you can import @trendmicro/react-buttons and its styles in your application as follows:
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

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

class App extends Component {
    render() {
        return (
            <Breadcrumbs>
                <Breadcrumbs.Item>
                    <Anchor href="#/devices">Devices</Anchor>
                </Breadcrumbs.Item>
                <Breadcrumbs.Item>
                    <Anchor href="#/devices/firewall">Firewall</Anchor>
                </Breadcrumbs.Item>
                <Breadcrumbs.Item active>
                    Policies
                </Breadcrumbs.Item>
            </Breadcrumbs>
        );
    }
}

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

<Breadcrumbs showLineSeparator>
    <Breadcrumbs.Item>
        Devices
    </Breadcrumbs.Item>
    <Breadcrumbs.Item active>
        Firewall
    </Breadcrumbs.Item>
    <Anchor className="pull-right" href="https://github.com/trendmicro-frontend/react-breadcrumbs">
        <i className="fa fa-question-circle" style={{ fontSize: 20 }} />
    </Anchor>
</Breadcrumbs>

API

Properties

Breadcrumbs
NameTypeDefaultDescription
showLineSeparatorBooleanfalse
Breadcrumbs.Item
NameTypeDefaultDescription
activeBooleanfalse

License

MIT

Keywords

FAQs

Package last updated on 06 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc