NK

Search

Search pages, posts, and components

All components

Pulse Dot

Data Display

A status dot with a pulsing halo.

Installation

Add it with the shadcn CLI:

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

    pnpm add clsx tailwind-merge
  2. 2. Copy the component source into components/library/pulse-dot.tsx

Props

PropTypeDefaultDescription
colorstring"bg-emerald-500"Tailwind background class for the dot.

Accessibility

  • Decorative - pair it with a text label naming the status.
  • Colour is configurable, so it can carry different states.
  • Uses a CSS animation, so it costs no JavaScript.

Dependencies

clsxtailwind-merge