@febkosq8/arc

中文文档
0.8.9发布于 2026/11/14CC-BY-NC-4.0TypeScriptES Module构建来源已验证近 30 天下载 3780

A React components library for febkosq8

原始使用文档
文档目录4 节
  1. Features
  2. Installation
  3. Usage
  4. Explore the project

Arc

A collection of reusable React components and interaction patterns for the interfaces I build.

NPM Version NPM Downloads


Arc is a React + Tailwind CSS component library that brings together the UI building blocks I reuse across my projects. It focuses on practical components, consistent styling, and small interaction details, while leaving page layout and product decisions to the application.

👉 Explore the components in Storybook 👈

Features

  • Reusable UI building blocks: Buttons, inputs, cards, menus, dropdowns, selects, switches, tags, modals, and more.
  • Interaction-focused components: Long-press and double-click buttons, preview cards, typing animation, a configurable grid loader, and hash navigation helpers.
  • Themed styling: Built with React and Tailwind CSS, with shared design tokens and light and dark theme styles.
  • Composable components: Use the components as parts of your interface without handing over control of your page layout.
  • Interactive examples: Browse component examples and states in Storybook.

Installation

npm install @febkosq8/arc
# or
pnpm add @febkosq8/arc

Usage

Import Arc's stylesheet from your application CSS:

@import "@febkosq8/arc/styles.css";

Arc's stylesheet registers its compiled components with Tailwind CSS v4, so their utility classes are generated automatically without an application-level @source directive.

Import components from the package:

import { Button, GridLoader } from "@febkosq8/arc";

export function Example() {
    return (
        <>
            <Button>Save</Button>
            <GridLoader rows={3} columns={3} label="Saving" />
        </>
    );
}

Explore the project

Arc is primarily built to meet my own projects' needs. It's shared publicly for anyone who might find the code useful, but it isn't intended as a polished, general-purpose replacement for a larger UI framework.

版本与发布记录

@febkosq8/arc 共发布 25 个版本,首次发布于 2024/12/12;过去 12 个月发布了 24 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.8.9latest2026/11/14今天
0.8.82026/11/122 天前
0.8.72026/11/104 天前
0.8.62026/11/077 天前
0.8.52026/11/077 天前
0.8.42026/11/077 天前

关于 @febkosq8/arc 的常见问题

@febkosq8/arc 是什么?

A React components library for febkosq8

如何安装 @febkosq8/arc?

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

@febkosq8/arc 支持 TypeScript 吗?

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

@febkosq8/arc 支持 ESM 还是 CommonJS?

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

@febkosq8/arc 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=26.13.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@febkosq8/arc 可以商用吗?

@febkosq8/arc 使用 CC-BY-NC-4.0 许可。声明的许可为 CC-BY-NC-4.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@febkosq8/arc 的下载量有多少?

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

@febkosq8/arc 还在维护吗?

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