NK

Search

Search pages, posts, and components

All components

Rotating Status

Data Display

A pill that cycles availability statuses beside a pulsing live dot.

Open to ContractOpen to FreelanceOpen to Full-timeOpen to Contract

Installation

Add it with the shadcn CLI:

$pnpm dlx shadcn@latest add https://nawalkattel.com.np/r/rotating-status.json
Or install manually
  1. 1. Install dependencies

    pnpm add motion clsx tailwind-merge
  2. 2. Copy the component source into components/library/rotating-status.tsx

Props

PropTypeDefaultDescription
statusesstring[] - Statuses to cycle, in order.
intervalnumber1400Milliseconds each status stays on screen.

Accessibility

  • The whole cycle is one keyframe animation - no interval, no re-renders.
  • Freezes on the first status under prefers-reduced-motion.
  • Every status is real text, so the pill reads correctly to assistive tech.

Dependencies

motionclsxtailwind-merge