@flabbergasted-ai/react

中文文档
0.5.0发布于 2026/11/01MITTypeScriptESM + CJS

Flab UI — React components for calm, data-dense application interfaces.

原始使用文档
文档目录4 节
  1. Install
  2. Usage
  3. Development
  4. License

@flabbergasted-ai/react

React 19 components for calm, data-dense application interfaces. The package contains the desktop component library plus a separate touch-first mobile entrypoint.

Install

pnpm add @flabbergasted-ai/react @flabbergasted-ai/tokens

React and React DOM are peer dependencies. Import the token CSS once after Tailwind, and include the package output in Tailwind's source scan:

@import "tailwindcss";
@import "@flabbergasted-ai/tokens/css";
@source '../node_modules/@flabbergasted-ai/react/dist';

Usage

"use client";

import { Button, Card, CardBody, CardTitle } from "@flabbergasted-ai/react";

export function Example() {
  return (
    <Card>
      <CardTitle>Deployment ready</CardTitle>
      <CardBody>
        <Button>Review changes</Button>
      </CardBody>
    </Card>
  );
}

Theme, palette and font-size initialization scripts are available through the theme-script, palette-script and font-size-script subpath exports.

Touch-first components are provided separately:

import { MobileShell, TabBar } from "@flabbergasted-ai/react/mobile";

Development

Run pnpm --filter @flabbergasted-ai/react test for package tests, or pnpm verify from the repository root before submitting a change.

License

Licensed under the MIT License. See LICENSE for details.

版本与发布记录

@flabbergasted-ai/react 共发布 9 个版本,首次发布于 2026/10/04;过去 12 个月发布了 9 个版本。

版本发布日期距今
0.5.0latest2026/11/012 天前
0.4.02026/10/259 天前
0.3.02026/10/259 天前
0.2.02026/10/1816 天前
0.1.12026/10/1123 天前
0.1.02026/10/1123 天前

关于 @flabbergasted-ai/react 的常见问题

@flabbergasted-ai/react 是什么?

Flab UI - React组件用于平静的、数据密集的应用程序接口。

如何安装 @flabbergasted-ai/react?

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

@flabbergasted-ai/react 支持 TypeScript 吗?

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

@flabbergasted-ai/react 支持 ESM 还是 CommonJS?

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

@flabbergasted-ai/react 可以商用吗?

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

@flabbergasted-ai/react 还在维护吗?

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