
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
glass-ui-vue
Advanced tools
A Vue 3 component library that implements glassmorphism design principles, providing a modern and visually appealing UI toolkit. It includes a variety of reusable components styled with glassmorphism effects, making it easy to create elegant and interacti
A modern Vue 3 component library featuring beautiful glassmorphism effects.
Quickly build elegant, responsive, and accessible UIs with ready-to-use glass components.
<script setup>
and Composition API.npm install glass-ui-vue
# or
yarn add glass-ui-vue
# or
pnpm add glass-ui-vue
// main.js or main.ts
import { createApp } from 'vue';
import App from './App.vue';
import GlassUI from 'glass-ui-vue';
import 'glass-ui-vue/styles';
const app = createApp(App);
app.use(GlassUI);
app.mount('#app');
Or import components locally:
import { Button, Panel } from 'glass-ui-vue';
Component | Description |
---|---|
Panel | Glass container for grouping content, supports variants and padding. |
Stack | Flexible layout for stacking children vertically or horizontally. |
Button | Glassmorphic button with variants and disabled state. |
Alert | Stylish alert for messages and notifications, dismissible. |
Badge | Status or highlight badge, supports all variants. |
Input | Glass input field, supports types and custom borders. |
Grid | Responsive grid system for arranging items in columns. |
Toaster | Toast notification system with variants and auto-dismiss. |
See the Storybook for live demos and prop documentation.
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.
<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-button variant="success" @click="notify">Show Toast</g-button>
<!-- Toaster should be mounted at the root or in App.vue -->
<Toaster />
</g-panel>
</template>
<script setup>
import { toast } from 'glass-ui-vue';
function notify() {
toast.emit('show', {
message: 'Hello from Glass UI!',
variant: 'success',
duration: 3000
});
}
</script>
Glass UI provides two ways to trigger toast notifications.
Choose the one that best fits your use case:
toast.emit
)How:
Import the toast
event bus and emit notifications from anywhere in your app.
import { toast } from 'glass-ui-vue';
function notify() {
toast.emit('show', {
message: 'Hello from Glass UI!',
variant: 'success',
duration: 3000
});
}
When to use:
Note:
Mount <Toaster />
once at the root (e.g., in App.vue
).
How:
Use a ref
to the <Toaster />
component and call its show
method directly.
<template>
<Toaster ref="toaster" />
<g-button @click="notify">Show Toast</g-button>
</template>
<script setup>
import { ref } from 'vue';
import { Toaster } from 'glass-ui-vue';
const toaster = ref(null);
function notify() {
toaster.value.show('Hello from Glass UI!', { variant: 'success', duration: 3000 });
}
</script>
When to use:
Tip:
You can use both methods in the same app if needed!
If you find Glass UI useful, please ⭐️ star the repo and share it with others!
**Glass UI © 2025 — Created by Surajdev
FAQs
A Vue 3 component library that implements glassmorphism design principles, providing a modern and visually appealing UI toolkit. It includes a variety of reusable components styled with glassmorphism effects, making it easy to create elegant and interacti
The npm package glass-ui-vue receives a total of 36 weekly downloads. As such, glass-ui-vue popularity was classified as not popular.
We found that glass-ui-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.