Introducing Nyx UI v1.2.0

Glow Card

Cards that has several glowing effects like liquid, laser, cosmic and glitch.

Cosmic

Cosmic Effect

Stars, nebula gas, and cosmic dust particles.

Glitch

Glitch Effect

Corrupted digital effects with scan lines.

Liquid

Liquid Effect

Smooth liquid effects with click ripples.

Laser

Laser Effect

High-precision crosshair laser.

Installation

Examples

Pokemon Glow Card

Digital Matrix
Psychic

Deoxys

An alien virus that fell to earth on a meteor underwent a DNA mutation to become this Pokémon.

Generation 3
Laser Targeting
Dark

Darkrai

It chases people and Pokémon from its territory by causing them to experience deep, nightmarish slumbers.

Generation 4
Cosmic Space
GhostPsychic

Lunala

Said to live in another world, this Pokémon devours light, drawing the moonless dark veil of night over the brightness of day.

Generation 7
Liquid Dynamics
Water

Suicune

This Pokémon races across the land. It is said that north winds will somehow blow whenever it appears.

Generation 2

Usage

import { GlowCard } from "@/components/ui/glow-card";
export default function BasicExample() {
  return (
    <GlowCard 
      liquidColor="#3b8000" 
      className="w-full max-w-md p-6 rounded-xl shadow-lg">
      <h3 className="text-xl font-bold mb-4">Liquid Card</h3>
      <p>
        This card is having the default liquid effect.
      </p>
    </GlowCard>
  );
}
 

Props

Glow Card

PropTypeDefaultDescription
childrenReact.ReactNodeundefinedThe content to display inside the card.
classNamestringundefinedAdditional CSS classes to apply.
variantstring"liquid"Animation variant: "liquid", "laser", "cosmic", or "glitch".
intensitynumber0.8The intensity of the effect (0-1).
liquidColorstring"#3b82f6"The color of the liquid effect (hex format).
laserColorstring"#ff0000"The color of the laser effect (hex format).
glitchColor1string"#ff0064"The primary color for glitch effect (hex format).
glitchColor2string"#00ff64"The secondary color for glitch effect (hex format).
disabledbooleanfalseWhether to disable the interactive effects.
allowCustomBackgroundbooleanfalseWhether to allow custom background color.