SpotlightCard
SpotlightCard displays a grid of items with an interactive spotlight effect that follows the mouse cursor over each card.
import { SpotlightCard } from '@lobehub/ui/awesome';Data Display
Default
Loading preview
APIs
SpotlightCard properties
borderRadiusnumberDefaults to
12.columnsnumberDefaults to
3.gapstring | numberDefaults to
"1em".itemsRequiredany[]maxItemWidthstring | numberrenderItemRequired(item: any) => ReactNodesizenumberDefaults to
800.spotlightbooleanDefaults to
true.
Also accepts all native HTML and ARIA attributes.
SpotlightCard also inherits all div element properties
Helpful?