Skip to Content
Documentation

Pet

Tabby, the VitNode pet - an animated SVG mascot with 14 states for welcome screens, loading, empty states and error pages, plus SVG and PNG downloads.

Tabby is VitNode's pet: a striped hexagon cat that ships as one React component with 14 states. Drop it into an empty state, a loading screen or an error page and the page instantly feels less like a stack trace.

Use the pet

Import Pet from core and pick a state. The pet scales to its box, so size it with Tailwind classes. Keep roughly a 7:8 width-to-height ratio.

welcome.tsx
import { Pet } from '@vitnode/core/components/pet/pet'

export const Welcome = () => <Pet className="h-44 w-40" state="hello" />

States

Every card has three buttons:

  • Copy puts the SVG markup on your clipboard, ready to paste into code or a design tool.
  • SVG downloads an animated file. The animation styles travel inside it, so Tabby keeps moving wherever you open it.
  • PNG downloads a still, 1024 px wide image with a transparent background.
StateUse it for
idleDefault pose
helloOnboarding and welcome screens
codingDocs and developer pages
coffeeBreaks and quiet days
loveThank-you screens
musicMedia and playlists
sleepingIdle or maintenance mode
thinkingLoading states
celebrateSuccess and first publish
searchingEmpty search results
offlineLost connections
oops404 pages
dizzy500 errors
buildingMaintenance and coming soon

Error pages

ErrorContent draws the status code in huge digits and lets Tabby stand in for the middle one: a 404 shows oops between the two 4s, and a 500 shows dizzy between the 5 and the 0. The built-in pages need no extra code. Other codes, such as 403, keep all three digits and skip the pet. Screen readers hear the code and title together, not the decorative digits.

Props

Prop

Type

Accessibility

  • The pet is decorative by default (aria-hidden). When it is the only thing that explains the screen, pass a label and it becomes an image with that name.
  • Only parts move: tail, ears, blinks, paws and props. The body never floats.
  • All animation stops when the visitor turns on reduced motion.