Tab Tricks
Your browser tab, put to work. Fun: a favicon that misses you. Useful: unread badges, progress rings, done alerts and timers right in the tab.
- Zero dependencies
- React + Tailwind
- Accessible
- Reduced-motion aware
tab-tricks.zip · source file + README with usage and props
Preview
Fun · Animated favicon faces + funny away titles, welcome back on return. mode="fun"
Two versions. Fun — leave the tab and the favicon becomes eyes looking around (or sleepy, crying, waving) while the title cycles jokes; come back to a happy bounce and “Yay! 🎉”. Useful — silent helpers people use without noticing: badge(n) for unread counts, progress(0–1) for uploads/exports, done() turns the icon into a green check when a job finishes while they're away, unsaved() dot, countdown() in the title, recording() red dot, and an “away 12 min · 3 updates” summary. The original title and favicon are always restored exactly.
Installation
- 1.Download tab-tricks.zip and unzip it.
- 2.Copy the
.tsxfile intocomponents/pickui/(Tailwind CSS required). - 3.Follow the README inside for usage.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| mode | "fun" | "useful" | "fun" | Which version. |
| face | "eyes" | "sleepy" | "crying" | "wave" | "eyes" | Fun: favicon animation while away. |
| away | string[] | — | Fun: titles cycled while hidden. |
| welcome | string | "Welcome back 👋" | Toast on return ('' disables). |
| awayAfter | number | 60000 | Useful: ms away before the summary toast (0 disables). |
| sound | boolean | false | Useful: soft chime on done(). |
| guardUnsaved | boolean | false | Useful: beforeunload warning while unsaved(true). |
| accent | string | "#4ade80" | Icon / toast colour. |
| onReady | (handle) => void | — | React: get badge / progress / done / unsaved / countdown / recording / notify. |
| animated | boolean | true | false = the calm “Regular” version (no idle or ambient motion). |
Accessibility
- Nothing moves on the page; toasts are polite status messages.
- Reduced motion: still favicon icons instead of animations.