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
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add now-servingOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { NowServing } from "@/components/ui/now-serving"; <NowServing number="B-42" />Source code
now-serving.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| number | string | Configures number. (Default: "") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |