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

zan-breadcrumb-nav

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zan-breadcrumb-nav

这是一个顶部面包屑组件

  • 5.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

zan-breadcrumb-nav

NPM

这是一个微商城顶部面包屑通用组件。

代码演示

:::demo 基础用法

import BreadcrumbNav from 'zan-breadcrumb-nav';

class Simple extends React.Component {

	render() {
		const navs = [
			{ id: 'dashboard', name: '首页', href: '#dashboard' },
			{ id: 'app', name: '应用中心', href: '#app' },
			{ id: 'ump', name: '营销中心', href: '#ump' }
		];

		const activeNav = 'app';

		return (
			<div>
				<BreadcrumbNav navs={navs} activeNav={activeNav} />
			</div>
		);
	}
}

ReactDOM.render(
	<Simple />
	, mountNode
);

:::

API

参数说明类型默认值备选值是否必填
className自定义额外类名string''''false
prefix自定义前缀string'rc'''false
navs面包屑内容arraytrue
activeNavactive的Itemstringfalse

FAQs

Package last updated on 03 Aug 2018

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