@ astryx-vue/ 核心
Vue 3 组件用于 astryx-veue 图像一个非官方的Astryx港口 不隶属于Meta.
利用探员? 安装
@astryx-vue/cli运行astryx-vue component Button,或astryx-vue init --features agents所以代理商将组件向上看而不是猜测. 二进制是astryx-vue没有astryx。 。 。 .
安装
pnpm add @astryx-vue/core @astryx-vue/themes
同伴依赖 : vue ^3.5.0。 。 。 .
使用
在应用程序条目中导入一个主题, 然后从它的子路径导入所需的组件 。 子路径加载组件的结构样式. 您不需要 StyleX 或 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>
偏好子路径,例如 @astryx-vue/core/Button 超过包根。 根再出口相同的组件,一个保存未使用的再出口的捆绑机可以拉入比您要求的更多. 导入 @astryx-vue/core/styles.css 只有当您想要一个文件中的所有结构工作表时.
道具、插槽和事件都在文件网站上,或:
npx @astryx-vue/cli component Button
相关软件包
| 软件包 | 这是什么 |
|---|---|
@astryx-vue/themes | 中立型、黄油型、巧克力型、哥特型、火柴型、斯通型和Y2K型 |
@astryx-vue/cli | astryx-vue 用于组件文件、搜索和代理上下文 |
资源
许可证
麻省理工学院. Astryx是版权Meta平台股份有限公司. 这个软件包是一个非官方的端口,没有附属于或得到Meta的认可.