🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@uni-hub/ui

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uni-hub/ui

UniHub 官方 UI 组件库 - 基于 shadcn-vue

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

@uni-hub/ui

UniHub 官方 UI 组件库,基于 shadcn-vue 构建。

安装

npm install @uni-hub/ui
# 或
pnpm add @uni-hub/ui

使用

<script setup>
import { Button, Input, Card } from '@uni-hub/ui'
</script>

<template>
  <Card>
    <Input placeholder="输入内容" />
    <Button>提交</Button>
  </Card>
</template>

<style>
@import '@uni-hub/ui/style.css';
</style>

组件列表

  • Button - 按钮组件
  • Input - 输入框组件
  • Card - 卡片组件
  • Label - 标签组件
  • Textarea - 文本域组件
  • Select - 选择器组件
  • Dialog - 对话框组件
  • Tabs - 标签页组件

主题

支持亮色和暗色主题,通过 CSS 变量控制。

开发

# 开发模式
pnpm dev

# 构建
pnpm build

Keywords

vue

FAQs

Package last updated on 01 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts