Availability Badge

A status pill with a motion language per state: “open” sends two staggered radar ripples, “limited” breathes slowly, “booked” holds still. Copy swaps on a vertical spring; optional live local clock.

Try it: Switch the status to watch each state’s motion.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/availability-badge.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/availability-badge. You can also copy the source into components/ui/availability-badge.tsx (view on GitHub).

Usage

import { AvailabilityBadge } from '@/components/ui/availability-badge'

Props

Component props
PropTypeDefaultNotes
status'open' | 'limited' | 'booked''open'Current availability.
labelsPartial<Record<status, { title, detail }>>—Override copy per status.
timeZonestring—IANA zone, e.g. 'Europe/Lisbon' — shows a live clock.
classNamestring—Extra classes merged onto the root.

Dependencies

  • motion
  • Portfolio Footer

    A closing statement in giant display type — letters rise out of masks on scroll-in and a light follows the cursor across the glyphs — with a slow ribbon marquee, links and back-to-top.

  • Copy Email Button

    A pill showing your address: the glyph morphs to a check, the label rolls to “Copied”, a ring pulses out and a live region confirms. Falls back to a select hint if the clipboard is blocked.

  • Section Spy Nav

    Sticky in-page navigation that follows your reading position: a shared pill springs between links as sections cross the reading line, a hairline fills with overall progress, and clicks glide and…

  • Social Dock

    A floating link dock whose icons swell with a spring as the pointer (or keyboard focus) nears them, with a coloured halo and a springy label chip. Generic glyphs — bring your own.

  • Project Lightbox

    Thumbnails open into a detail modal through a shared-element morph — artwork flies from its tile to the hero slot while copy staggers in. Focus trapped and restored, Esc closes, ←/→ browse.

  • Contact Form Card

    Validated on blur and submit with announced inline errors (shake + focus jump), optional async onSubmit with a sending morph, a drawn-check success scene with a particle burst, and a failure state…

See all 35 Portfolio components