@astryx-vue/core

中文文档
0.7.13发布于 2026/11/08MITTypeScriptES Module构建来源已验证近 30 天下载 3939

Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.

原始使用文档
文档目录5 节
  1. Install
  2. Use
  3. Related packages
  4. Resources
  5. License

@astryx-vue/core

Vue 3 components for astryx-vue, an unofficial port of Astryx. Not affiliated with Meta.

Using an agent? Install @astryx-vue/cli and run astryx-vue component Button, or astryx-vue init --features agents so the agent looks components up instead of guessing. The binary is astryx-vue, not astryx.

Install

pnpm add @astryx-vue/core @astryx-vue/themes

Peer dependency: vue ^3.5.0.

Use

Import a theme once at the app entry, then import the component you need from its subpath. The subpath loads that component's structural styles. You do not need StyleX or UnoCSS.

import '@astryx-vue/themes/neutral.css'
<script setup lang="ts">
import { Button } from '@astryx-vue/core/Button'
</script>

<template>
  <Button label="Save changes" variant="primary" />
</template>

Prefer a subpath such as @astryx-vue/core/Button over the package root. The root re-exports the same components, and a bundler that keeps unused re-exports can pull in more than you asked for. Import @astryx-vue/core/styles.css only when you want every structural sheet in one file.

Props, slots, and events are on the docs site, or:

npx @astryx-vue/cli component Button
PackageWhat it is
@astryx-vue/themesNeutral, Butter, Chocolate, Gothic, Matcha, Stone, and Y2K
@astryx-vue/cliastryx-vue for component docs, search, and agent context

Resources

License

MIT. Astryx is copyright Meta Platforms, Inc. This package is an unofficial port and is not affiliated with or endorsed by Meta.

版本与发布记录

@astryx-vue/core 共发布 33 个版本,首次发布于 2026/10/12;过去 12 个月发布了 33 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.7.13latest2026/11/08今天
0.7.122026/11/08今天
0.7.112026/11/07今天
0.7.102026/11/07今天
0.7.92026/11/061 天前
0.7.82026/11/052 天前

关于 @astryx-vue/core 的常见问题

@astryx-vue/core 是什么?

Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.

如何安装 @astryx-vue/core?

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

@astryx-vue/core 支持 TypeScript 吗?

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

@astryx-vue/core 支持 ESM 还是 CommonJS?

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

@astryx-vue/core 可以商用吗?

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

@astryx-vue/core 的下载量有多少?

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

@astryx-vue/core 还在维护吗?

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