@canva/app-components

中文文档
2.9.0发布于 2026/11/09SEE LICENSE IN LICENSE.mdTypeScriptESM + CJS近 30 天下载 1.2万

Contains composite app components for reusable app patterns, for example, DAM (digital asset management) apps.

原始使用文档
文档目录9 节
  1. Table of contents
  2. Introduction
  3. Installation
  4. Peer Dependencies
  5. Usage
  6. Building a digital asset management app
  7. Components
  8. Contributing
  9. License

@canva/app-components

React-based library of composite app components for common Canva App patterns.

Table of contents

Introduction

The app components library extracts common Canva App patterns and provides them as a component you can reuse in your own project. For example, you can use this component to create a digital asset management (DAM) app.

If you're looking for general purpose UI components, see App UI Kit.

To learn more about developing apps on Canva, see the official documentation.

Installation

npm install @canva/app-components

Peer Dependencies

This package requires the following peer dependencies to be installed in your project:

Required Canva SDK packages:

npm install @canva/app-ui-kit @canva/asset @canva/design @canva/error @canva/platform

Required React packages:

npm install react react-dom

Required utility packages:

npm install @tanstack/react-query react-intl react-router-dom clsx loglevel react-infinite-scroller

Note: If these peer dependencies are not installed, the package will not work. npm will show warnings during installation if any peer dependencies are missing.

Usage

Building a digital asset management app

See the digital_asset_management example in the Apps SDK starter kit.

Components

To learn how to use the available components, see the Storybook instance.

Contributing

We're actively developing this package but are not currently accepting third-party contributions. If you'd like to request any changes or additions to the package, submit a feature request via the Canva Developers Community.

License

See the LICENSE.md file.

版本与发布记录

@canva/app-components 共发布 50 个版本,首次发布于 2024/02/19;过去 12 个月发布了 9 个版本。

版本发布日期距今
2.9.0latest2026/11/09今天
2.8.12026/10/071 个月前
2.8.02026/09/281 个月前
2.7.02026/08/112 个月前
2.6.02026/08/102 个月前
2.5.02026/05/155 个月前

其他发布通道:beta → 2.0.0-beta.1。

关于 @canva/app-components 的常见问题

@canva/app-components 是什么?

Contains composite app components for reusable app patterns, for example, DAM (digital asset management) apps.

如何安装 @canva/app-components?

在项目目录运行 npm install @canva/app-components,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^19)、react-dom(^19)、react-intl(^7)、@canva/user(^2.2.0)、@canva/asset(^2.3.0)、@canva/error(^2.2.1)、@canva/design(^2.9.0)、@canva/platform(^2.2.2)、@canva/app-ui-kit(^5.7.0)、@tanstack/react-query(^5.14.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@canva/app-components 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@canva/app-components 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@canva/app-components 可以商用吗?

@canva/app-components 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@canva/app-components 的下载量有多少?

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

@canva/app-components 还在维护吗?

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