Glow Card Grid

Display cards with glowing border and background effects.

shadcn
shadcn

shadcn

@shadcn

Guillermo Rauch
Guillermo Rauch

Guillermo Rauch

@rauchg

Bhide Svelte
Bhide Svelte

Bhide Svelte

@Sikandar_Bhide

Shu
Shu

Shu

@shuding

Emil Kowalski
Emil Kowalski

Emil Kowalski

@emilkowalski

Chánh Đại
Chánh Đại

Chánh Đại

@iamncdai

Installation

pnpm dlx shadcn-svelte@latest add http://sveltekit-prerender/r/glow-card-grid.json

Usage

usage.svelte

Features

  • Displays cards with glowing border and background effects
  • Fine-tunable icon and border blur, saturation, brightness, and contrast parameters
  • Composable GlowCard and GlowCardGrid components

Examples

Subtle glow

Chánh Đại
Chánh Đại

Chánh Đại

@iamncdai

Emil Kowalski
Emil Kowalski

Emil Kowalski

@emilkowalski

Vibrant glow

Chánh Đại
Chánh Đại

Chánh Đại

@iamncdai

Emil Kowalski
Emil Kowalski

Emil Kowalski

@emilkowalski

Shape and layout

Chánh Đại
Chánh Đại

Chánh Đại

@iamncdai

Emil Kowalski
Emil Kowalski

Emil Kowalski

@emilkowalski

Props

GlowCardGrid

Grid provider that controls the shared pointer glow styles.

NameTypeDefaultDescription
childrenSnippetrequiredGlow cards rendered inside the grid.
cardRadiusnumber16Card corner radius in pixels.
iconBlurnumber25Blur radius applied to the moving background image.
iconSaturatenumber5Saturation multiplier for the background image.
iconBrightnessnumber1.3Brightness multiplier for the background image.
iconScalenumber4Scale applied to the moving background image.
iconOpacitynumber0.3Opacity of the moving background image.
borderWidthnumber3Width of the glowing border in pixels.
borderBlurnumber10Backdrop blur applied to the glowing border.
borderSaturatenumber4.2Backdrop saturation multiplier for the border.
borderBrightnessnumber2.5Backdrop brightness multiplier for the border.
borderContrastnumber2.5Backdrop contrast multiplier for the border.
refHTMLDivElement | nullnullBindable reference to the grid element.
classstringundefinedAdditional classes applied to the grid.

GlowCard

Profile card rendered within a GlowCardGrid.

NameTypeDefaultDescription
namestringrequiredDisplay name shown on the card.
handlestringrequiredSecondary handle shown below the name.
avatarstringrequiredAvatar image URL used by the card and glow effect.
classstringundefinedAdditional classes applied to the card.