Back to components
Handle Availability Field React component

What is this?

A username field with a fixed prefix such as designlayer.com/ or @. After a short pause it shows a spinner, then a green check and “is available” or a red cross and “is already taken”, and the field outline follows the color. Pass status from your own lookup, or leave it unset for a local demo. Swap the prefix and copy, then drop it into sign-up or a profile URL setting.

Component

Handle Availability Field

A username field with a fixed prefix such as designlayer.com/ or @. After a short pause it shows a spinner, then a green check and “is available” or a red cross and “is already taken”, and the field outline follows the color. Pass status from your own lookup, or leave it unset for a local demo. Swap the prefix and copy, then drop it into sign-up or a profile URL setting.

Checking access…
Live Preview

Verified Technical Spec

Animation
CSS / Tailwind
Reduced motion
Verified
Keyboard focus
Verified
Compatibility
Tailwind CSS v3.4 + v4 · React 19 / Next.js 15 App Router + Vite / Remix compatible

Included

  • Copy source into Cursor or Claude for agent install
  • Finished React · TypeScript · Tailwind CSS · Lucide UI

Dependencies

  • React 19.0.0
  • Typescript 5.7.2
  • Tailwindcss 3.4.16
  • Lucide-react 1.23.0

Tech Stack

  • React
  • TypeScript
  • Tailwind CSS
  • Lucide

Version 1.0.0