Component packs › Pressworks › Telegraph Key

Telegraph Key

Hold the brass key: the contacts close and the tape prints a dash; when it reaches the send mark the message goes, and taps only print dots.

Telegraph Key is a hold to send from Pressworks, a component pack with 8 buttons: Eight buttons, each a different real mechanism you can feel. Price: $2 for the whole pack.

Built with: rocking lever on a trunnion, printed tape, hold threshold you can see.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Telegraph Key props

PropTypeDefaultDescription
labelstringAccessible name.
holdnumberHow long to hold, in ms.
text{ idle?: string; holding?: string; sent?: string }Status lines: idle, holding, sent.
disabledboolean
onSend() => voidCalled once when a hold reaches the send mark.
theme'light' | 'dark'
sizenumberScale factor. 1 = 300 × 186 px.
autoplaynumber | falseShowcase mode: taps a short call sign, then holds to send, every N ms while visible.

Methods on the ref

Use it in React

import TelegraphKey from './TelegraphKey';

<TelegraphKey />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Pressworks

Good for: Buttons.