
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
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, supports icon, title, description, and is 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
:icon="'ℹ️'"
title="Info Alert"
description="This is an info alert with icon, title, and description!"
/>
<g-alert
variant="success"
:icon="'✔️'"
title="Success!"
description="Your operation was completed successfully."
/>
<g-alert
variant="danger"
dismissible
>
<template #icon>
<svg width="1.5em" height="1.5em" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="12" fill="#e74c3c"/>
<path d="M8 8l8 8M16 8l-8 8" stroke="#fff" stroke-width="2"/>
</svg>
</template>
<strong>Danger:</strong> Custom SVG icon!
</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>
Prop | Type | Default | Description |
---|---|---|---|
variant | String | 'info' | Visual style: primary , secondary , success , etc. |
icon | String, Component, or Slot | null | Emoji, component, or slot for leading icon |
title | String | '' | Bold headline text |
description | String | '' | Secondary description text |
dismissible | Boolean | false | Show a close (dismiss) button |
timeout | Number | null | Auto-dismiss after ms (e.g., 3000 for 3s) |
title
and description
are empty, slot content is rendered.icon
prop accepts an emoji, a component, or you can use the #icon
slot for custom SVG.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!
We welcome contributors to help build a top-class UI component library!
Whether you want to fix bugs, add features, improve documentation, or suggest ideas—your input is valued.
Let's build an amazing glassmorphism UI kit
If you find Glass UI useful, please ⭐️ star the repo and share it with others!
Glass UI © 2025 — Created by Surajdev Pandey
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 363 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 EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.