npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@adikris/react-slot

v0.0.3

Published

A React component library inspired by vintage split-flap display boards, like those classic railway station information boards

Downloads

8

Readme

@adikris/react-slot

A React component library inspired by vintage split-flap display boards, like those classic railway station information boards. Built with TypeScript, GSAP animations, and modern React patterns.

Installation

npm install @adikris/react-slot
# or
yarn add @adikris/react-slot

Features

  • 🎨 Customizable split-flap animations
  • 🔄 Smooth GSAP-powered transitions
  • 📱 Responsive design
  • 🌗 Light/Dark/System theme support
  • 🎛️ Configurable board and line properties
  • 🔧 TypeScript support

Basic Usage

import { FlipBoard } from '@adikris/react-slot';

function App() {
  return (
    <FlipBoard
      lines={[
        {
          text: "Hello World",
          color: "white",
          alignment: "left",
          length: 10
        }
      ]}
      theme="dark"
    />
  );
}

Props

FlipBoard Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | lines | LineConfig[] | [] | Array of line configurations | | boardBackground | string | 'hsl(0 0% 15%)' | Board background color | | gap | string | '0.5ch' | Gap between lines | | padding | string | '6px' | Board padding | | perspective | number | 1 | 3D perspective effect | | theme | 'light' \| 'dark' \| 'system' | 'dark' | Color theme |

LineConfig Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | text | string | '' | Text to display | | characters | string | 'a-z' | Available characters | | padAmount | number | 0 | Animation padding | | alignment | 'left' \| 'right' | 'left' | Text alignment | | color | string | 'black' | Text color | | fontSize | string | '2.5rem' | Font size | | slotWidth | string | '1.5ch' | Character slot width | | length | number | 10 | Line length | | backgroundColor | string | 'hsl(0 0% 92%)' | Slot background |

Demo Component

The library includes a demo component with a full UI for testing all features:

import { FlipBoardDemo } from '@adikris/react-slot';

function App() {
  return <FlipBoardDemo />;
}

The demo provides controls for:

  • Adding/removing lines
  • Modifying text and characters
  • Adjusting animations and padding
  • Changing colors and themes
  • Configuring layout properties

Animation Details

The component uses GSAP for smooth flip animations with configurable properties:

  • Character-by-character flipping
  • Configurable flip speed
  • Customizable padding between flips
  • 3D perspective effects

Browser Support

Supports all modern browsers with CSS transform and custom properties support.

License

MIT