@clevercloud/components

中文文档
26.10.1发布于 2026/11/05Apache-2.0ES Module构建来源已验证近 30 天下载 4950

Collection of Web Components by Clever Cloud

原始使用文档
文档目录6 节
  1. title: 'Readme'
  2. What is this?
  3. Why is it public?
  4. Can I see those components?
  5. Can I use them in my project?
  6. License

title: 'Readme'

Collection of Web Components by Clever Cloud

What is this?

This project contains a collection of Web Components made by Clever Cloud.

Some of those components are low-level like <cc-button>, <cc-input-text> or <cc-loader>, the other components are more high-level and specific to Clever Cloud's domain model.

We use them on different Web UIs we have (public and internal).

Why is it public?

  1. We want to share our knowledge and experience with Web Components along with the tooling we used to build them. We hope it will help others for their own components.
  2. We use those components ourselves but we also want our clients and partners to use them in their own custom Web UIs based on our products.
  3. We think it's a great way for our clients to give feedbacks (and even contributions) on small parts of our Web UIs.

Can I see those components?

All our components are showcased with "stories" using Storybook. You can see all our components (and their stories) on this preview.

Storybook is a great tool to present your components in many different situations. This way, you can check how they behave with different inputs (properties, attributes...) and make sure they produce the right outputs (emit events...).

We also use web-component-analyzer to generate a documentation spec sheet for each component. You can find it in the Docs story of a component (example).

Can I use them in my project?

Sure, they're available on npm. Contact us if you want more details.

License

This project is licensed under the Apache-2.0.

We're using modified versions of two projects related to Leaflet:

Both projects are licensed with BSD-2-Clause. They aren't updated anymore, and we wanted them to be exposed as modern ES modules. This is the main reason we decided to copy them in our own repo. The respective copyrights are at the top of each file:

  • src/lib/leaflet-heat.js
  • src/lib/simpleheat.js

Icons are powered by Remix Icon.

版本与发布记录

@clevercloud/components 共发布 236 个版本,首次发布于 2019/06/18;过去 12 个月发布了 37 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
26.10.1latest2026/11/054 天前
26.10.02026/11/055 天前
26.9.12026/11/046 天前
26.9.02026/10/2812 天前
26.8.02026/10/2614 天前
26.7.02026/10/2119 天前

其他发布通道:alpha → 1.0.0-alpha.9,beta → 10.0.0-beta.0。

关于 @clevercloud/components 的常见问题

@clevercloud/components 是什么?

Collection of Web Components by Clever Cloud

如何安装 @clevercloud/components?

在项目目录运行 npm install @clevercloud/components,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@clevercloud/client(^12.6.8)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@clevercloud/components 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/clevercloud__components 是否存在。

@clevercloud/components 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@clevercloud/components 可以商用吗?

@clevercloud/components 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@clevercloud/components 的下载量有多少?

根据 npm 官方下载统计,@clevercloud/components 在 2026/10/10 – 2026/11/08 这 30 天内被下载 4,950 次,日均约 165 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@clevercloud/components 还在维护吗?

最新版本 26.10.1 发布于 2026/11/05(4 天前);至今共发布 236 个版本,其中过去 12 个月发布了 37 个;首次发布于 2019/06/18。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。