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

slidev-addon-infographic

v1.1.0

Published

@antv/infographic component for slidev

Readme

slidev-addon-infographic

@antv/infographic component for slidev

theme-light theme-dark slide-overview slides-overview

Usage Process

pnpm i slidev-addon-infographic --save

Add the following to your package.json:

...
  "slidev": {
    "addons": [
      "slidev-addon-infographic"
    ]
  }
...

Add the following to your slides.md:

v1.1.0+

Starting from v1.1.0, the InfographicBox component has been added (which internally includes the RenderWhen component) for displaying infographics in slides.

从 v1.1.0 开始,新增了 InfographicBox 组件(内部包含 RenderWhen 组件),用于在幻灯片中显示信息图。

---
addons:
  - slidev-addon-infographic
---

<InfographicBox
  :data="`infographic list-row-simple-horizontal-arrow
data
  items
    - label 步骤 1
      desc 开始
    - label 步骤 2
      desc 进行中
    - label 步骤 3
      desc 完成
`"></InfographicBox>
  • To export in PDF format, add the isExportPdf property to the InfographicBox component. When exporting, click will be set to false by default.
  1. 如需导出 PDF 格式,请为 InfographicBox 组件增加 isExportPdf 属性,导出的时候会默认将 click 设置为 false

v1.0.0+

---
addons:
  - slidev-addon-infographic
---

<RenderWhen
  :context="['visible', 'print', 'slide', 'overview', 'presenter', 'previewNext']"
  style="height: 100%;">
  <Infographic
    :data="`infographic list-row-simple-horizontal-arrow
data
  items
    - label 步骤 1
      desc 开始
    - label 步骤 2
      desc 进行中
    - label 步骤 3
      desc 完成
    `"></Infographic>
</RenderWhen>

RenderWhen

  • Infographic component must be used with RenderWhen component to show infographic in slidev.
  • If you want to export PDF format, please remove visible in RenderWhen component's context attribute.
  1. Infographic组件必须与RenderWhen组件一起使用,才能在幻灯片中显示信息图。
  2. 如需导出 PDF 格式,请将 RenderWhen 组件的 context 属性中的 visible 去除。

Parameter Description

| Parameter | Description | Type | Default | Version | | --------- | ----------- | ---- | ------- | ------- | | data | Infographic data | string | - | 1.0.0 | | click | Whether to respond to Slidev click animation, If set to true, you need to add a clicks field in the frontmatter with the value being the number of clicks. | boolean | false | 1.0.4 | | isExportPdf | Whether to export in PDF format. When exporting, click will be set to false by default. | boolean | false | 1.1.0 |

  • Note: click is primarily used for demonstrating effects, and it is recommended to turn it off when exporting.
  • Note: When click is true, it needs to occupy a separate page.
  • Note: After setting click to true and adding the clicks count, you need to click yourself to confirm the effect.

| 参数 | 描述 | 类型 | 默认值 | 版本 | | ---- | ---- | ---- | ------ | ---- | | data | 信息图数据 | string | - | 1.0.0 | | click | 是否响应Slidev点击动画,如果设置为 true,需要在 frontmatter 中添加 clicks 字段,值为点击次数。 | boolean | false | 1.0.4 | | isExportPdf | 是否导出 PDF 格式。导出时会默认将 click 设置为 false。 | boolean | false | 1.1.0 |

  1. 注意:click 主要用于演示效果,导出时建议关闭。
  2. 注意:clicktrue 时,需要单独占一页。
  3. 注意:设置 clicktrue 后,并添加 clicks 点击次数之后的效果需要自行点击确认。

Example

Example

Slidev

Edit the slides.md to see the changes.

Learn more about Slidev at the documentation.