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

glassheart-ui-react

v1.1.6

Published

React components for GlassHeartUI

Downloads

19

Readme

glassheart-ui-react

React 版本的 GlassHeartUI 元件庫。

安裝

npm install glassheart-ui-react

使用

基本使用

import { GlassCard, GlassButton, GlassInput, GlassTypography } from 'glassheart-ui-react';

function App() {
  return (
    <GlassCard liquid interactive>
      <GlassCardHeader>
        <GlassCardTitle>Hello GlassHeartUI</GlassCardTitle>
      </GlassCardHeader>
      <GlassCardContent>
        <GlassInput placeholder="Enter your name" />
        <GlassButton variant="primary" liquid>Submit</GlassButton>
      </GlassCardContent>
    </GlassCard>
  );
}

CDN 使用

<script src="https://unpkg.com/[email protected]/dist/index.js"></script>
<script>
  const { GlassCard, GlassButton, GlassInput } = window.GlassHeartUIReact;
</script>

元件

GlassTypography

使用 Canvas 渲染的毛玻璃文字效果組件。

基本用法

<GlassTypography
  variant="h1"
  size="2xl"
  weight="bold"
  glass="medium"
  glow
  gradient
>
  Hello GlassHeartUI
</GlassTypography>

屬性

| 屬性 | 類型 | 預設值 | 描述 | |------|------|--------|------| | children | string | - | 要顯示的文字內容 | | variant | 'h1' \| 'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6' \| 'p' \| 'span' \| 'div' | 'p' | 文字變體 | | size | 'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| '2xl' \| '3xl' \| '4xl' \| '5xl' \| '6xl' | 'md' | 文字尺寸 | | weight | 'light' \| 'normal' \| 'medium' \| 'semibold' \| 'bold' \| 'extrabold' \| 'black' | 'normal' | 字重 | | glass | 'light' \| 'medium' \| 'heavy' | 'medium' | 玻璃效果強度 | | liquid | boolean | false | 是否啟用液體流動效果 | | gradient | boolean | false | 是否啟用漸變效果 | | animated | boolean | false | 是否啟用動畫效果 | | glow | boolean | false | 是否啟用發光效果 | | glowColor | string | '#ffffff' | 發光顏色 | | glowIntensity | number | 0.8 | 發光強度 (0-2) |

GlassCard 系列

  • GlassCard - 主卡片元件
  • GlassCardHeader - 卡片標題區
  • GlassCardTitle - 卡片標題
  • GlassCardDescription - 卡片描述
  • GlassCardContent - 卡片內容
  • GlassCardFooter - 卡片底部

GlassButton 系列

  • GlassButton - 按鈕元件
  • GlassButtonGroup - 按鈕群組

GlassInput 系列

  • GlassInput - 輸入框
  • GlassTextarea - 文字區域
  • GlassInputGroup - 輸入框群組
  • GlassFloatingLabel - 浮動標籤

向後兼容性

為了向後兼容,舊的組件名稱仍然可用:

import { Card, Button, Input } from 'glassheart-ui-react';
// 等同於
import { GlassCard, GlassButton, GlassInput } from 'glassheart-ui-react';

授權

MIT License