Component packs › Pressworks › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | Accessible name. | |
hold | number | How long to hold, in ms. | |
text | { idle?: string; holding?: string; sent?: string } | Status lines: idle, holding, sent. | |
disabled | boolean | ||
onSend | () => void | Called once when a hold reaches the send mark. | |
theme | 'light' | 'dark' | ||
size | number | Scale factor. 1 = 300 × 186 px. | |
autoplay | number | false | Showcase mode: taps a short call sign, then holds to send, every N ms while visible. |
send(): void: Plays a hold to the end and sends.setDisabled(disabled: boolean): voiddestroy(): voidimport TelegraphKey from './TelegraphKey';
<TelegraphKey />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Buttons.