npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dt-element/dt-element

v1.0.0

Published

Vue3 + TS components library

Downloads

2

Readme

DT Element 🌟

npm version license Vue 3

一套基于 Vue 3 的企业级 UI 组件库,提供高效、灵活且美观的交互解决方案。

✨ 特性

  • 🚀 Vue 3 优先 - 完全基于 Composition API 构建
  • 🎨 主题定制 - 支持 CSS 变量动态主题配置
  • 📦 按需加载 - 支持 Tree Shaking 优化
  • 🛠 TypeScript 支持 - 完整的类型定义
  • 📚 完整文档 - 集成 Vitepress 文档系统

📦 安装

npm install dt-element
# 或
yarn add dt-element

🔨 快速开始

全局注册

// main.js
import { createApp } from 'vue'
import DtElement from 'dt-element'
import 'dt-element/dist/styles.css' // 引入默认样式

const app = createApp(App)
app.use(DtElement)

按需引入

在 Vue 组件中直接导入需要的组件:

<script setup>
import { Button, Tooltip } from 'dt-element'
// 单独引入组件样式(可选)
import 'dt-element/dist/es/components/Button/style.css'
import 'dt-element/dist/es/components/Tooltip/style.css'
</script>

<template>
  <Button type="primary">点击我</Button>
  <Tooltip content="提示信息">
    <span>悬停查看提示</span>
  </Tooltip>
</template>

🧩 组件列表

| 组件 | 描述 | 状态 | | ----------- | ------------ | --------- | | Button | 多功能按钮 | ✅ 稳定 | | Tooltip | 信息提示框 | ✅ 稳定 | | Icon | 图标 | 🚧 开发中 | | Form | 表单控件集合 | ✅ 稳定 | | Message | 消息提醒 | ✅ 稳定 | | 更多... | | |

🛠 开发指南

环境准备

git clone https://github.com/your-repo/dt-element.git
cd dt-element
npm install

开发命令

npm run dev          # 启动开发服务器
npm run docs:dev     # 启动文档开发模式
npm run build        # 构建生产包
npm run type-check   # 类型检查
npm run lint         # 代码规范检查

文档

npm run docs:dev     # 本地文档开发
npm run docs:build   # 构建静态文档

📄 许可证

本项目基于 MIT License 发布。


温馨提示:建议使用 Node.js 16+ 和 npm 7+ 进行开发,组件库需要 Vue 3.2+ 运行时环境。