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

@felixgeelhaar/glaze-vue

v1.0.1

Published

Vue 3 components for the Glaze Design System

Readme

@felixgeelhaar/glaze-vue

Vue 3 components for the Glaze Design System

Installation

npm install @felixgeelhaar/glaze-vue @felixgeelhaar/glaze-components
# or
pnpm add @felixgeelhaar/glaze-vue @felixgeelhaar/glaze-components
# or
yarn add @felixgeelhaar/glaze-vue @felixgeelhaar/glaze-components

Setup

Global Installation

// main.js or main.ts
import { createApp } from 'vue';
import App from './App.vue';
import { GlazePlugin } from '@felixgeelhaar/glaze-vue';

// Import styles
import '@felixgeelhaar/glaze-components/dist/styles/tokens.css';
import '@felixgeelhaar/glaze-components/dist/styles/components.css';

const app = createApp(App);
app.use(GlazePlugin);
app.mount('#app');

Individual Component Import

<script setup>
import { GlzButton, GlzCard, GlzDialog } from '@felixgeelhaar/glaze-vue';
import '@felixgeelhaar/glaze-components/dist/styles/tokens.css';
import '@felixgeelhaar/glaze-components/dist/styles/components.css';
</script>

<template>
  <GlzButton variant="glass" tone="primary">
    Click Me
  </GlzButton>
</template>

Usage

Basic Example

<template>
  <div class="app">
    <GlzCard variant="glass" size="lg">
      <h2>Welcome to Glaze Vue</h2>
      
      <GlzInput
        v-model="name"
        label="Your Name"
        placeholder="Enter your name"
        helper-text="We'll use this to personalize your experience"
      />
      
      <GlzButton
        variant="glass"
        tone="primary"
        @click="showDialog = true"
      >
        Open Dialog
      </GlzButton>
      
      <GlzDialog
        v-model:open="showDialog"
        label="Hello!"
      >
        <p>This is a beautiful glassmorphism dialog.</p>
        <GlzButton @click="showDialog = false">
          Close
        </GlzButton>
      </GlzDialog>
    </GlzCard>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const name = ref('');
const showDialog = ref(false);
</script>

Components

GlzButton

<GlzButton
  variant="glass"     // "glass" | "solid" | "ghost"
  size="md"          // "sm" | "md" | "lg"
  tone="primary"     // "primary" | "accent" | "neutral"
  :disabled="false"
  :loading="false"
  @click="handleClick"
>
  Click Me
</GlzButton>

GlzCard

<GlzCard
  variant="glass"
  size="md"
  tone="neutral"
  class="custom-class"
>
  <h3>Card Title</h3>
  <p>Card content goes here</p>
</GlzCard>

GlzDialog

<GlzDialog
  v-model:open="isOpen"
  variant="glass"
  label="Dialog Title"
>
  <p>Dialog content</p>
  <GlzButton @click="isOpen = false">Close</GlzButton>
</GlzDialog>

GlzInput

<GlzInput
  v-model="inputValue"
  type="text"
  label="Email Address"
  placeholder="[email protected]"
  helper-text="We'll never share your email"
  :error="false"
  error-message=""
  :required="true"
  :disabled="false"
/>

GlzSelect

<GlzSelect
  v-model="selectedValue"
  label="Choose an option"
  :options="[
    { value: 'option1', label: 'Option 1' },
    { value: 'option2', label: 'Option 2' },
    { value: 'option3', label: 'Option 3', disabled: true }
  ]"
  placeholder="Select..."
  helper-text="Pick your favorite"
/>

GlzToast

<GlzToast
  v-model:open="showToast"
  type="success"      // "info" | "success" | "warning" | "error"
  title="Success!"
  message="Your changes have been saved"
  position="bottom-right"
  :duration="5000"
/>

GlzNavbar

<GlzNavbar
  variant="glass"
  brand="My App"
  brand-href="/"
  :sticky="true"
>
  <a href="/features">Features</a>
  <a href="/pricing">Pricing</a>
  <a href="/about">About</a>
</GlzNavbar>

Composition API

useGlaze

<script setup>
import { useGlaze } from '@felixgeelhaar/glaze-vue';

const { toast, dialog } = useGlaze();

// Show a toast
toast.success('Operation completed!');
toast.error('Something went wrong');
toast.info('Here is some information');
toast.warning('Please be careful');

// Show a dialog
const confirmed = await dialog.confirm('Are you sure?');
if (confirmed) {
  // User clicked confirm
}
</script>

TypeScript Support

Full TypeScript support with type definitions:

import type { 
  GlzButtonProps,
  GlzCardProps,
  GlzDialogProps,
  GlzInputProps 
} from '@felixgeelhaar/glaze-vue';

// Use in component props
defineProps<GlzButtonProps>();

Styling

Using CSS Classes

Components accept standard class attributes:

<GlzButton class="my-custom-button" variant="glass">
  Styled Button
</GlzButton>

CSS Variables

Customize the theme using CSS variables:

:root {
  --glz-primary: #6366f1;
  --glz-accent: #f472b6;
  --glz-radius-md: 0.75rem;
  --glz-blur-md: 12px;
}

With Tailwind CSS

Components work seamlessly with Tailwind:

<GlzCard class="p-6 m-4 hover:scale-105 transition-transform">
  <h2 class="text-2xl font-bold mb-4">Tailwind + Glaze</h2>
</GlzCard>

Features

  • 🎨 Beautiful glassmorphism effects - Modern frosted glass aesthetics
  • Vue 3 Composition API - Built for modern Vue
  • 📱 Responsive - Mobile-first design
  • Accessible - WCAG 2.1 AA compliant
  • 🎯 TypeScript - Full type definitions
  • 🎭 Customizable - Override any style
  • Performant - Optimized Vue components
  • 🌙 Dark mode - Automatic theme support

Nuxt 3 Support

Installation

# Install dependencies
pnpm add @felixgeelhaar/glaze-vue @felixgeelhaar/glaze-components

Setup

Create a plugin:

// plugins/glaze.client.js
import { GlazePlugin } from '@felixgeelhaar/glaze-vue';
import '@felixgeelhaar/glaze-components/dist/styles/tokens.css';
import '@felixgeelhaar/glaze-components/dist/styles/components.css';

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(GlazePlugin);
});

Usage in Nuxt

<template>
  <GlzButton variant="glass">
    Works in Nuxt!
  </GlzButton>
</template>

Browser Support

  • Chrome/Edge 61+
  • Firefox 63+
  • Safari 10.1+
  • iOS Safari 10.3+
  • Chrome Android 61+

License

MIT

Links