@ciromaciel/dashboard-kit

中文文档
1.17.0发布于 2026/11/05MITES Module零依赖近 30 天下载 4320

The components every dashboard shares: table, empty state, loading state, destructive confirm, danger zone and wordmark.

原始使用文档
文档目录6 节
  1. Installation
  2. Quick start
  3. API
  4. What goes in here
  5. Why there is no build
  6. Links

@ciromaciel/dashboard-kit

The components every dashboard shares: table, empty state, loading state, destructive confirm and wordmark. Built on Mantine.

Installation

bun add @ciromaciel/dashboard-kit

Peers: @mantine/core, @mantine/hooks, @mantine/notifications, @tabler/icons-react, react.

Quick start

import { DataTable, EmptyState, AuthLoader } from '@ciromaciel/dashboard-kit'

function Projects({ rows, loading }) {
    if (loading) return <AuthLoader />

    return (
        <DataTable
            columns={[{ key: 'name', label: 'Name' }, { key: 'status', label: 'Status', hideBelow: true }]}
            rows={rows}
            getRowKey={row => row.id}
            onRowClick={row => navigate(`/projects/${row.id}`)}
            emptyState={<EmptyState title="No projects yet" description="Create your first one." actionLabel="New project" onAction={create} />}
        />
    )
}

API

ExportWhat it is
DataTable · TableSkeleton · TableToolbar · templateFor · ROW_PADDING · HEAD_PADDINGThe table, its toolbar and its waiting state
EmptyStateThe empty — which is not the same thing as "still loading"
SectionCard · Field · FieldStacked · CardActionsThe section card
PageHeaderTitle and breadcrumb
HoldToConfirmButton · HoldToConfirmIconThe reversible destructive confirm
DeleteModal · deleteTitleScaleThe top of the escalation: reversible → hold → this. before holds the way out (backup)
DangerZoneThe door to DeleteModal at the end of a settings page
AuthLoader · AuthScreen · AUTH_LABELS · AUTH_TEXTSThe moment the dashboard does not know who you are
WordmarkThe mark, in two roles (variant="mark" / "label"). The name comes by prop
ZenLabel · notify · NOTIFICATIONS_PROPS · NOTIFY_DESCRIPTION_CSS · notificationThemeLabel and notice
DashboardFrame · SidebarShell · SIDEBAR_WIDTHThe frame and the sidebar
MenuItem · NavItem · GroupLabel · ResourceItem · ActiveResourceThe sidebar's pieces
Metric · CommandCenterThe first screen
PlanBannerThe billing banner: it warns, it never blocks
SupportModal · HealthRow · useHealthCheckSupport and health
CardSkeleton · ListSkeleton · MoreResultsLoading and "load more"
Terminal · TerminalOutputCommand output
usePaginatedList · useDebounce · useExclusiveModalThe hooks

What goes in here

What is the same across dashboards. What belongs to a product stays out — a status light, a currency rule. The dividing line: if a dashboard had to change the component to serve its product, the component is not everyone's yet.

Why there is no build

The package publishes source. The consumers are Vite apps, which compile JSX from a dependency without ceremony — a build step would only produce what the consumer already knows how to produce. One less moving part to break.

MIT © Ciro Cesar Maciel

版本与发布记录

@ciromaciel/dashboard-kit 共发布 40 个版本,首次发布于 2026/09/20;过去 12 个月发布了 40 个版本。

版本发布日期距今
1.17.0latest2026/11/054 天前
1.16.02026/11/045 天前
1.15.12026/11/046 天前
1.15.02026/10/2911 天前
1.14.02026/10/2515 天前
1.13.72026/10/2416 天前

关于 @ciromaciel/dashboard-kit 的常见问题

@ciromaciel/dashboard-kit 是什么?

The components every dashboard shares: table, empty state, loading state, destructive confirm, danger zone and wordmark.

如何安装 @ciromaciel/dashboard-kit?

在项目目录运行 npm install @ciromaciel/dashboard-kit,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.0.0 || ^19.0.0)、@mantine/core(^7.0.0 || ^8.0.0)、@mantine/hooks(^7.0.0 || ^8.0.0)、@tabler/icons-react(^3.0.0)、@mantine/notifications(^7.0.0 || ^8.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@ciromaciel/dashboard-kit 支持 TypeScript 吗?

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

@ciromaciel/dashboard-kit 支持 ESM 还是 CommonJS?

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

@ciromaciel/dashboard-kit 可以商用吗?

@ciromaciel/dashboard-kit 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@ciromaciel/dashboard-kit 的下载量有多少?

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

@ciromaciel/dashboard-kit 还在维护吗?

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