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

@vinson.hx/vc-biz

v1.0.2

Published

VC business UI components built on vc-design and Ant Design.

Readme

vc-biz

基于 vc-designAnt Design 5 的业务 UI 组件包(多项目复用)。

状态

业务组件源码位于本包 src/;迁移与后续计划见仓库根目录 docs/plan-biz-components-implementation.md

Peer 依赖

  • react >= 18
  • react-dom >= 18
  • antd >= 5 < 6
  • vc-design >= 1.0.0

样式

在应用入口(如 Vite main.tsx)在 vc-design 样式之后引入:

import 'vc-design/dist/index.css';
import 'vc-biz/style.css';

本地构建(在 monorepo 根目录)

npm install
npm run build:vc-biz

或在子包目录:

cd packages/vc-biz && npm run build

prebuild 会根据 assets/store_logo 生成 src/generated/storeLogoUrls.ts(切换区店铺图标);该文件可纳入版本控制或在 CI 中依赖 prebuild 重新生成。


安装与使用(开发态)

1) 引入样式

在应用入口(如 Vite main.tsx)在 vc-design 样式之后引入:

import 'vc-design/dist/index.css';
import 'vc-biz/style.css';

2) 最小示例:SwitchArea(带图标)

import React, { useState } from 'react';
import { SwitchTabs, type SwitchTabItemData } from 'vc-biz';

const storeItems: SwitchTabItemData[] = [
  { key: '精选平台', label: '精选平台', icon: 'otherstore.jpg' },
  { key: '抖音', label: '抖音', icon: 'douyin.jpg' },
];

export function SwitchAreaMini() {
  const [activeKey, setActiveKey] = useState('精选平台');
  return (
    <SwitchTabs
      items={storeItems}
      activeKey={activeKey}
      onChange={setActiveKey}
      showIcon
      showPanel={false}
    />
  );
}

Figma 映射表(v0)

见:docs/figma-biz-components-mapping-v0.md