Morse Telegraph

A brass telegraph key: tap dits and dahs, watch them print on paper tape and decode live.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

Short press = dit, long = dah, pauses separate letters and words. A sounder beeps, the paper tape records every mark, and a decoder turns them into text. Or type a message and transmit it.

Installation

$ npx shadcn@latest add https://pickui.guetix.com/r/morse-telegraph.json

Uses the shadcn CLI. It creates components/pickui/morse-telegraph.tsx and installs nothing else.

Usage

example.tsx
import { MorseTelegraph } from "@/components/pickui/morse-telegraph";

export default function Example() {
  return <MorseTelegraph />;
}

Props

PropTypeDefaultDescription
dahnumber180Dit/dah threshold (ms).
tonenumber640Tone frequency (Hz).
soundbooleantrueBeep.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Space works as the key; decoded text is a live region.