Skip to content
PixiKit

Torch Card

A card lit by a soft spotlight that follows the pointer, catches its edge and reaches nearby cards.

pixikit.com/docs/components/torch-card

Customize

Spotlight color
Intensity0.15
Spotlight size240px
Softness0.70
Shape
Border glow0.60
Proximity80px
Smoothing0.30
Ambient
Flare
Grain0.00
Theme

Props

15
NameTypeDefaultDescription
childrenReactNodeNoneContent of the card.
spotlightColorstringNoneColor of the light. Any CSS color works and its alpha is respected. Defaults to white on dark cards and near black on light ones.
intensitynumber0.15Brightness of the light on the card surface, from 0 to 1.
spotlightSizenumber240Radius of the light in px.
softnessnumber0.7How gradually the light fades out. 0 gives a crisp disc, 1 a soft glow that fades from the center.
shape"circle" | "beam""circle"Circle is a round spotlight around the pointer. Beam pours light down from the top edge toward it, like a stage light.
borderGlownumber0.6How much the card edge catches the light near the pointer, from 0 to 1.
proximitynumber80Distance in px outside the card at which the light starts to reach it. Cards placed together share one light this way. 0 lights a card only while hovered.
smoothingnumber0.3How far the light floats behind the pointer. 0 sticks to it.
ambientbooleanfalseLets the light drift slowly across the card while nothing points at it, which keeps cards alive on touch screens.
flarebooleantrueThe light swells and brightens while the card is pressed.
grainnumber0Film grain inside the light, from 0 to 1. A little removes banding from large soft gradients.
theme"dark" | "light""dark"Surface, border and light treatment for dark or light pages. Override the colors with the --spotlight-card-surface and --spotlight-card-border CSS variables.
classNamestring""Extra class names for the card.
styleCSSPropertiesNoneInline styles for the card.

More interaction components in Pro

View all

Related