Bento Spotlight
A 3-tile dark obsidian bento layout where pointer movement casts a soft violet radial beam across borders and card surfaces simultaneously.
#bento#spotlight#grid#hover
Shaders
60fps
Flavors
4×
Zero Lock-in
MIT
Customize
#A855F7
220px
Border Highlight
Installation
$pnpm dlx yourbrand@latest add @yourbrand/BentoSpotlight-TS-TWUsage (synced with live props)
<BentoSpotlight
spotlightColor="#A855F7"
radius={220}
borderGlow
/>Source Code
BentoSpotlight.tsx"use client";
import React from "react";
export interface BentoSpotlightProps {
spotlightColor?: string;
radius?: number;
borderGlow?: boolean;
}
export function BentoSpotlight({
spotlightColor = "#A855F7",
radius = 220,
borderGlow = true,
}: BentoSpotlightProps) {
return (
<div
className="grid w-full max-w-lg grid-cols-2 gap-3"
data-color={spotlightColor}
data-radius={radius}
data-border={borderGlow}
/>
);
}
Props API
| Prop | Type | Default | Description |
|---|---|---|---|
| spotlightColor | string (hex) | "#A855F7" | Radial spotlight tint. |
| radius | number | 220 | Diameter of illuminated halo. |
| borderGlow | boolean | true | Illuminate card hairlines near cursor. |