Componentticket-stub1.04 KB gzipZero dependencies

Turnstile Gate

Mechanical rotor barrier with pass counter, status LED, and push animation.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add turnstile-gate

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { TurnstileGate } from "@/components/ui/turnstile-gate"; <TurnstileGate gateName="GATE A-04" admittedCount={384} onAdmit={() => console.log("Admitted")} />

Source code

turnstile-gate.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxturnstile-gate.tsx105 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface TurnstileGateProps extends React.HTMLAttributes<HTMLDivElement> {  gateName?: string;  admittedCount?: number;  locked?: boolean;  onAdmit?: () => void;  className?: string;} export function TurnstileGate({  gateName = "GATE A-04",  admittedCount = 384,  locked = false,  onAdmit,

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { TurnstileGate } from "@/components/ui/turnstile-gate"; <TurnstileGate />
PropTypeDescription
gateNamestringConfigures gate name. (Default: "GATE A-04")
admittedCountnumberConfigures admitted count. (Default: 384)
lockedbooleanToggles locked. (Default: false)
onAdmit() => voidCallback invoked on admit.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.