Componentticket-stub1.04 KB gzipZero dependencies
Turnstile Gate
Mechanical rotor barrier with pass counter, status LED, and push animation.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add turnstile-gateOr install the full npm package:
npm install bigbulluiUsage
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 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| gateName | string | Configures gate name. (Default: "GATE A-04") |
| admittedCount | number | Configures admitted count. (Default: 384) |
| locked | boolean | Toggles locked. (Default: false) |
| onAdmit | () => void | Callback invoked on admit. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |