Dark Spotlight

Dark spotlight FAQ with radial hover effects.

Main Features of Dark Spotlight

How to Use Dark Spotlight in Next.js

Installation Guide for Dark Spotlight

Props

Customize the component with these props

PropertyTypeDefaultDescription
faqs
Array<{q: string, a: string}>[]Array of FAQ items with question (q) and answer (a).
backgroundColor
string#000000Background color (hex, rgb, or hsl).
badgeText
stringSupport CenterBadge text displayed above title.
badgeBgColor
stringrgba(23, 23, 23, 0.5)Badge background color.
badgeBorderColor
string#262626Badge border color.
badgeTextColor
string#a3a3a3Badge text color.
title
stringFrequently Asked QuestionsSection title text.
titleGradientFrom
string#ffffffTitle gradient start color.
titleGradientTo
stringrgba(255,255,255,0.4)Title gradient end color.
cardBgColor
stringrgba(23, 23, 23, 0.3)Card background color.
cardBorderColor
string#262626Card border color.
cardTextColor
string#e5e5e5Card text color.
hoverCardTextColor
string#ffffffCard text color on hover.
answerTextColor
string#a3a3a3Answer text color.
iconColor
string#737373Icon color.
hoverIconColor
string#ffffffIcon color on hover.
spotlightColor
stringrgba(255,255,255,0.1)Spotlight effect color.

When to Use

Excellent for dark mode landing pages, premium developer tools, and Next.js sites that want a mysterious, high-end aesthetic. Use this React component for a subtle FAQ section with radial spotlight hover effects and glowing gradients.

Best Practices

Maintain consistent spacing within your design system by using this on dark or textured backgrounds. Follow React best practices by pairing it with high-contrast text. Optimize for performance by managed the spotlight calculation for high-DPI displays.

Why This Component Matters in Modern UI Development

Spotlight effects create a sense of exclusivity and focus. This production-ready component provides a refined version of this aesthetic, adding a layer of visual excitement and perceived value to your interface.

Frequently Asked Questions

QHow does the spotlight work?

The component tracks mouse movements and applies a radial gradient mask to create a localized glow on the active card.

QIs it too dark for readability?

It uses a sophisticated balance of low-opacity backgrounds and high-contrast text to ensure accessibility while maintaining the dark aesthetic.

QCan I change the glow color?

Yes, the `spotlightColor` prop allows you to customize the glow to match your brand's primary or secondary colors.

Dark Spotlight - React FAQ & Accordion Component | Uilora