Skip to content
PixiKit

Glow Bento

A bento grid of feature cards with built-in animated artwork, edges that light up near the cursor across neighboring cards, a spotlight inside the hovered card and a ring of light on click.

pixikit.com/docs/components/glow-bento

Customize

Columns4
Row height200px
Gap12px
Radius20px
Theme
Glow color
Enable border glow
Enable spotlight
Spotlight radius300px
Enable stars
Particle count24
Enable tilt
Enable magnetism
Click effect
Text auto hide
Intro
Disable animations

Props

22
NameTypeDefaultDescription
itemsGlowBentoItem[]NoneCards to show. Each takes label, title, description, icon, image, visual, content, href, onClick, colSpan and rowSpan.
columnsnumber4Columns on wide screens. Drops to 2, then 1, as the grid gets narrower.
rowHeightnumber200Height of one row, in px.
gapnumber12Space between cards, in px.
radiusnumber20Corner radius of the cards, in px.
theme"dark" | "light""dark"Color theme of the cards.
glowColorstringNoneColor of the lights and the accents in the artwork. Takes hex or "r, g, b".
enableBorderGlowbooleantrueLights up the card edges near the cursor, across neighboring cards too.
enableSpotlightbooleantrueA soft light follows the cursor inside the hovered card.
spotlightRadiusnumber300Size of the cursor light, in px.
enableStarsbooleanfalseFine specks of light drift up around the cursor in the hovered card.
particleCountnumber24Number of specks in each card.
enableTiltbooleanfalseTilts the hovered card toward the cursor.
enableMagnetismbooleanfalseThe hovered card leans a few pixels toward the cursor.
clickEffectbooleantrueClicking sends a ring of light across the grid and replays the card artwork.
textAutoHidebooleantrueKeeps titles to one line and descriptions to two.
introbooleantrueCards rise in one by one and their artwork plays when the grid scrolls into view.
disableAnimationsbooleanfalseTurns off all motion. Reduced motion settings do the same.
onItemClick(item: GlowBentoItem, index: number) => voidNoneCalled when a card is clicked. Cards become focusable buttons.
cardsGlowBentoItem[]NoneOur older name for items. Used when items is not set.
classNamestring""Extra class names for the grid.
styleCSSPropertiesNoneInline styles for the grid.

Related