
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@reelkit/react
Advanced tools
React components and hooks for building TikTok/Instagram Reels-style sliders. Virtualized rendering, touch gestures, keyboard/wheel navigation — all in ~3.4 kB gzip.
npm install @reelkit/react
import { useState } from 'react';
import { Reel, ReelIndicator } from '@reelkit/react';
function App() {
const [index, setIndex] = useState(0);
return (
<Reel
count={100}
direction="vertical"
afterChange={setIndex}
itemBuilder={(i) => (
<div style={{ width: '100%', height: '100%' }}>Slide {i + 1}</div>
)}
>
<ReelIndicator count={100} active={index} />
</Reel>
);
}
<Reel> — virtualized slider component (only 3 slides in DOM)<ReelIndicator> — Instagram-style position dots| Prop | Type | Default | Description |
|---|---|---|---|
count | number | required | Number of slides |
itemBuilder | (index) => ReactElement | required | Render function for slides |
direction | 'horizontal' | 'vertical' | 'vertical' | Slide direction |
initialIndex | number | 0 | Starting slide index |
loop | boolean | false | Enable infinite loop |
swipeDistanceFactor | number | 0.12 | Swipe threshold (0-1) |
transitionDuration | number | 300 | Animation duration in ms |
useNavKeys | boolean | true | Enable keyboard navigation |
enableWheel | boolean | false | Enable mouse wheel navigation |
wheelDebounceMs | number | 200 | Wheel debounce duration |
apiRef | ref | - | Ref to access public API |
afterChange | (index) => void | - | Callback after slide change |
beforeChange | (index, nextIndex) => void | - | Callback before slide change |
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | required | Total number of slides |
active | number | required | Currently active slide index |
radius | number | 3 | Dot radius in pixels |
visible | number | 3 | Number of visible dots |
onDotClick | (index) => void | - | Callback when dot is clicked |
Full API reference, interactive demos, and guides at reelkit.dev.
FAQs
React components and hooks for building TikTok/Instagram Reels-style sliders
The npm package @reelkit/react receives a total of 112 weekly downloads. As such, @reelkit/react popularity was classified as not popular.
We found that @reelkit/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.