Aurora Input

A text field with an aurora border on focus, floating label, live character ring and error shake.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

A conic-gradient border rotates via a registered CSS @property angle (smooth, GPU-friendly), with a blurred copy for glow. The character ring fills and changes color near the limit; errors shake and get announced.

Installation

$ npx shadcn@latest add https://pickui.guetix.com/r/aurora-input.json

Uses the shadcn CLI. It creates components/pickui/aurora-input.tsx and installs nothing else.

Usage

example.tsx
import { AuroraInput } from "@/components/pickui/aurora-input";

export default function Example() {
  return <AuroraInput />;
}
Sign-up formsSearchSettings

Under the hood

The details that make it feel right, and that a one-line prompt usually misses:

  • 01Animates a typed @property angle, the only way to smoothly spin a conic-gradient border.
  • 02Floating label with the :placeholder-shown trick and no JavaScript.

Props

PropTypeDefaultDescription
labelstring"Email address"Floating label.
limitnumber40Character limit ring (0 hides).
hintstring—Help text.
errorstring—Error message (shakes + alert).
...input propsInputHTMLAttributes—value, onChange, type…
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Label bound to input; help text via aria-describedby; errors role=alert.