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-TW
Usage (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

PropTypeDefaultDescription
spotlightColorstring (hex)"#A855F7"Radial spotlight tint.
radiusnumber220Diameter of illuminated halo.
borderGlowbooleantrueIlluminate card hairlines near cursor.