Componentdata0.61 KB gzipZero dependencies

NowServing

Split-flap style NOW SERVING board whose digits flip on value change with a blinking chime dot.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add now-serving

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { NowServing } from "@/components/ui/now-serving"; <NowServing number="B-42" />

Source code

now-serving.tsx + 1 helper

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

tsxnow-serving.tsx59 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface NowServingProps extends React.HTMLAttributes<HTMLElement> {  number: string;  className?: string;} export function NowServing({ number = "", className, ...props }: NowServingProps) {  return (    <div      className={cn(        "relative rounded-lg border border-border bg-card p-6 motion-reduce:transition-none",        className      )} {...props}    >

Props

Interactive Prop Playground

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

tsx3 lines
import { NowServing } from "@/components/ui/now-serving"; <NowServing />
PropTypeDescription
numberstringConfigures number. (Default: "")
classNamestringOptional Tailwind or custom CSS classes merged with component styles.