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

@alicd/crui-storage-nav

v0.0.16

Published

--- category: Components type: UI Views component: Base chinese: 导航(收纳式) english: StorageNav ---

Readme


category: Components type: UI Views component: Base chinese: 导航(收纳式) english: StorageNav

收纳式导航组件。

规则

该组件类似于 Overlay,通过外部控制其 visible 属性来决定其显示或隐藏。

API

StorageNav

| 成员 | 说明 | 类型 | 默认值 | |---|---|---|---| |visible|是否显示导航浮层|boolean|false| |onClose|在鼠标离开菜单(参见 mouseLeaveTimeout 属性))或者点击关闭按钮导致导航浮层关闭的时候触发的回调|() => void|默认不执行任何操作| |closeIcon|配置浮层左上角显示的关闭图标|string 或组件|category| |mouseLeaveTimeout|鼠标指针离开浮层一段时间后,浮层会自动关闭。本属性配置鼠标离开后等待多长时间,单位为毫秒,为 0 时则禁用该功能,即不会在鼠标离开菜单后自动隐藏(用户此时便可完全控制何时隐藏菜单)|number|300| |hoveredKey|当前哪一个 Item 处于激活状态,设置该属性则当前展开值为受控状态|string|N/A| |onHover|用户移动鼠标,悬浮在其他 Item 上时触发的回调|(hoveredKey: string) => void|N/A| |menuOpenTimeout|切换菜单时的延迟,单位为毫秒,用于避免鼠标指针划过菜单区域时过于频繁地切换菜单导致的不便|number|128| |onMouseEnter|鼠标指针移入菜单浮层时触发的回调|(e: Event) => void|N/A| |onMouseLeave|鼠标指针移出菜单浮层时触发的回调|(e: Event) => void|N/A| |onMouseMove|鼠标指针在菜单浮层中移动时触发的回调|(e: Event) => void|N/A| |canCloseByIconClick|是否允许点击左上角的图标来触发 onClose 回调关闭菜单浮层。为 false 时则图标仅作展示作用,无行为|boolean|false|

StorageNav.Item

| 成员 | 说明 | 类型 | 默认值 | |---|---|---|---| |title|菜单上显示的内容|ReactNode|N/A| |onClick|点击菜单项的回调|(e: Event) => void|默认不执行任何操作|