A strictly glassmorphism React UI component library.
react-glass-ui is a fully typed, heavily animated React component library built around the glassmorphism aesthetic — frosted glass surfaces, glowing borders, and soft depth shadows. Bundled via Vite with zero runtime dependencies.
npm install @dinakars777/react-glass-uiImport the design tokens once at the root of your app (main.tsx or App.tsx):
import '@dinakars777/react-glass-ui/style.css';import { Button } from '@dinakars777/react-glass-ui';
<Button variant="primary">Submit</Button>
<Button variant="outline" size="lg">Read More</Button>
<Button variant="ghost" fullWidth>Cancel</Button>| Prop | Type | Default |
|---|---|---|
variant |
"primary" | "outline" | "ghost" |
"primary" |
size |
"sm" | "md" | "lg" |
"md" |
fullWidth |
boolean |
false |
import { Card } from '@dinakars777/react-glass-ui';
<Card glow>
<h2>Glass Container</h2>
<p>Frosted glass surface with optional glow.</p>
</Card>| Prop | Type | Default |
|---|---|---|
glow |
boolean |
false |
import { Input } from '@dinakars777/react-glass-ui';
<Input placeholder="Enter your email..." />Accepts all standard HTML <input> attributes.
{
"react": "^18.2.0 || ^19.0.0",
"react-dom": "^18.2.0 || ^19.0.0"
}arch-to-code— Visual Terraform generator
MIT