npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@beisen-phoenix/breadcrumb

v3.3.55

Published

面包屑组件

Readme

面包屑组件

@beisen-phoenix/breadcrumb

概述

显示当前页面在系统层级结构中的位置,并能向上返回。

API

Breadcrumb

| 参数 | 说明 | 类型 | 默认值 | 是否必传 | | ----------------- | ---------------------------------------------- | -------------------- | ------ | -------- | | max | 最大层级 | number | - | 否 | | children | 子节点,具体导航路径,参照下列 Breadcrumb.Item | string | | 否 | | className | 自定义样式 | string | -- | 否 | | onClick | 单击事件 | (index:number)=>void | -- | 否 | | getPopupContainer | 悬浮元素挂载的容器 | ()=>HTMLElement | -- | 否 |

Breadcrumb.Item

| 参数 | 说明 | 类型 | 默认值 | 是否必传 | | ----------------- | ------------------ | --------------- | ------ | -------- | | text | 显示文本 | string | - | 否 | | icon | 图标 | ReactNode | - | 否 | | className | 自定义样式 | string | -- | 否 | | getPopupContainer | 悬浮元素挂载的容器 | ()=>HTMLElement | -- | 否 |

changeLog

2019/11/6 Breadcrumb 和 Breadcrumb.Item 新增 getPopupContainer 属性,用于定义悬浮元素的挂载容器

demo

import React from 'react';
import Breadcrumb from '../../src';

export default function App() {
	return (
		<>
			<Breadcrumb
				max={14}
				onClick={index => {
					alert(index);
				}}>
				<Breadcrumb.Item text='首页'></Breadcrumb.Item>
				<Breadcrumb.Item text='第二页'></Breadcrumb.Item>
				<Breadcrumb.Item text='联系我们联系我们联系我们联系我们联系我们联系我们联系我们联系我们联系我们联系我们'></Breadcrumb.Item>
				<Breadcrumb.Item text='联系我们2'></Breadcrumb.Item>
				<Breadcrumb.Item text='联系我们3'> </Breadcrumb.Item>
				<Breadcrumb.Item text='联系我们4'></Breadcrumb.Item>
			</Breadcrumb>
		</>
	);
}