Components

Card Slider

A generic card / image / video slider with touch swipe, arrow navigation, progress indicator (bar, dots, or counter), responsive visible count, auto-play, and full color customization.

npx neonblade add card-slider

Single item · Bar progress · Sides buttons

SECTOR 01
Stable

SECTOR 01

Perimeter relay

Uplink 96%

SECTOR 02
Optimal

SECTOR 02

Data harbor

Nodes 14

SECTOR 03
Active

SECTOR 03

Pulse corridor

Flow 2.4 Tb/s

SECTOR 04
Tracking

SECTOR 04

Drone lane

ETA 03:12

SECTOR 05
Guarded

SECTOR 05

Vault ingress

Heat 42C

SECTOR 06
Clear

SECTOR 06

Skybridge

Latency 3ms

Responsive · 1→2→3 visible · Dot progress · Bottom buttons · Frame corners

SECTOR 01
Stable

SECTOR 01

Perimeter relay

Uplink 96%

SECTOR 02
Optimal

SECTOR 02

Data harbor

Nodes 14

SECTOR 03
Active

SECTOR 03

Pulse corridor

Flow 2.4 Tb/s

SECTOR 04
Tracking

SECTOR 04

Drone lane

ETA 03:12

SECTOR 05
Guarded

SECTOR 05

Vault ingress

Heat 42C

SECTOR 06
Clear

SECTOR 06

Skybridge

Latency 3ms

2 visible · Counter progress · Hover buttons · Plus corners · Pink

NEXUS
Synced

NEXUS

Quantum lane

Ping 12ms

VOID
Live

VOID

Shadow channel

Load 68%

PULSE
Burst

PULSE

Signal tower

Burst x14

FLUX
Queued

FLUX

Transit vault

ETA 01:08

01/04

Auto-play · Scan lines · Green

NODE A
Online

NODE A

Eco reactor

Yield 94%

NODE B
Stable

NODE B

Grid uplink

Load 31%

NODE C
Secured

NODE C

Storage bay

Vault 72%

NODE D
Inbound

NODE D

Drone dock

ETA 00:42

NODE E
Clean

NODE E

Relay gate

Jitter 1.9ms

Props Configuration

PropTypeDefaultDescription
childrenReactNodeSlides to render. Pass any ReactNode: <img>, <video>, custom cards, etc. Each child occupies one slide slot.
visibleCountnumber | { sm?: number; md?: number; lg?: number; xl?: number }1Number of items visible simultaneously. Accepts a plain number (same at all breakpoints) or a responsive object (sm ≥ 640 px, md ≥ 768 px, lg ≥ 1024 px, xl ≥ 1280 px).
gapnumber16Gap between slide items in pixels.
showButtonsbooleantrueShow previous / next arrow navigation buttons.
buttonPosition"sides" | "bottom""sides"Where to render navigation buttons. "sides" floats them over the left/right edges of the viewport; "bottom" places them in the footer row beside the progress indicator.
buttonVisibility"always" | "hover""always"Controls when navigation buttons are visible. "always" keeps them visible at all times; "hover" fades them in only when the slider is hovered.
buttonCornerSizenumber10Size of the diagonal corner cut on navigation buttons in pixels.
prevButtonCorner"top-right" | "top-left" | "bottom-right" | "bottom-left""bottom-left"Which corner is cut on the previous (left) navigation button.
nextButtonCorner"top-right" | "top-left" | "bottom-right" | "bottom-left""bottom-right"Which corner is cut on the next (right) navigation button.
enableSwipebooleantrueEnable touch-swipe and mouse-drag navigation.
swipeThresholdnumber50Minimum drag distance in pixels required to trigger a slide change.
showProgressbooleantrueShow a progress indicator below the viewport.
progressStyle"bar" | "dots" | "counter""bar"Visual style of the progress indicator. "bar" renders a neon fill bar; "dots" renders corner-cut dot buttons; "counter" shows a "03 / 10" numeric readout.
loopbooleanfalseLoop back to the first slide after the last one.
autoPlaybooleanfalseAuto-advance slides at the interval set by autoPlayInterval. Pauses on hover.
autoPlayIntervalnumber3000Interval between auto-advance steps in milliseconds.
accentColorstring"#00f3ff"Primary accent / neon glow color. Used for buttons, progress, corner accents, and all glow effects.
edgeFadeColorstring"#000000"Color for the gradient edge-fades. Set this to your page background color for a natural blend.
showEdgeFadesbooleanfalseOverlay gradient fades on the left and right edges of the viewport.
showCornerAccentsbooleantrueDisplay corner accent decorations on each slide/card item.
cornerAccentStyle"frame" | "plus""frame"Visual style of the corner accent decorations. "frame" renders L-shaped targeting reticle lines on each corner; "plus" renders an SVG plus/cross icon centered on each corner.
scanLinesbooleanfalseOverlay subtle CRT horizontal scan-lines on the viewport for a retro cyberpunk effect.
classNamestring""Additional CSS classes applied to the root wrapper element.
viewportClassNamestring""Additional CSS classes applied to the overflow-hidden viewport element.
itemClassNamestring""Additional CSS classes applied to each slide item slot.