You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

glass-ui-vue

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glass-ui-vue

A modern Vue 3 component library featuring beautiful glassmorphism effects.

1.0.2
Source
npmnpm
Version published
Weekly downloads
60
-81.98%
Maintainers
1
Weekly downloads
 
Created
Source

Glass UI

A modern Vue 3 component library featuring beautiful glassmorphism effects.
Quickly build elegant, responsive, and accessible UIs with ready-to-use glass components.

✨ Features

  • Glassmorphism Design: All components use frosted glass backgrounds and soft shadows.
  • Vue 3 Support: Built with <script setup> and Composition API.
  • Customizable: Easily change variants, padding, alignment, and more via props.
  • Light & Dark Themes: Automatic support for both themes.
  • Accessible: Focus rings, ARIA attributes, and keyboard navigation.
  • Component Library: Panel, Stack, Button, Alert, Badge, Input, Grid, Toaster, and more.

🚀 Getting Started

1. Install

npm install glass-ui-vue
# or
yarn add glass-ui-vue
# or
pnpm add glass-ui-vue

2. Register the Plugin

// main.js or main.ts
import { createApp } from 'vue';
import App from './App.vue';
import GlassUI from 'glass-ui-vue';
import 'glass-ui-vue/dist/glass-ui.css';

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

Or import components locally:

import { Button, Panel } from 'glass-ui-vue';

🧩 Components

ComponentDescription
PanelGlass container for grouping content, supports variants and padding.
StackFlexible layout for stacking children vertically or horizontally.
ButtonGlassmorphic button with variants and disabled state.
AlertStylish alert for messages and notifications, dismissible.
BadgeStatus or highlight badge, supports all variants.
InputGlass input field, supports types and custom borders.
GridResponsive grid system for arranging items in columns.
ToasterToast notification system with variants and auto-dismiss.

See the Storybook for live demos and prop documentation.

📚 Documentation & Community

  • Storybook: [Link to your Storybook deployment]
    Live demos and prop documentation for every component.
  • GitHub Repo: https://github.com/yourusername/glass-ui
  • Issues & Contributions:
    Please open issues or pull requests for bugs, features, or improvements.
  • License: MIT

🛡️ License & Attribution

This project is licensed under the MIT License.

Attribution:
Please credit Surajdev Pandey when using this library in your projects.
Do not remove or alter the original attribution in source or documentation.

💡 Example Usage

<template>
  <g-panel variant="primary" padding="lg">
    <h1>Welcome to Glass UI</h1>
    <g-alert variant="info" dismissible>
      This is an info alert!
    </g-alert>
    <g-btn variant="success" @click="notify">Show Toast</g-btn>
    <Toaster ref="toaster" />
  </g-panel>
</template>

<script setup>
import { ref } from 'vue';
import { Toaster } from 'glass-ui';

const toaster = ref(null);
function notify() {
  toaster.value.show('Hello from Glass UI!', { variant: 'success' });
}
</script>

⭐️ Star & Share

If you find Glass UI useful, please ⭐️ star the repo and share it with others!

**Glass UI © 2025 — Created by Surajdev

Keywords

vue

FAQs

Package last updated on 27 Jun 2025

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