← Back to Gallery

Floating Labels

When labels: 'floating' is set in the Appearance config, per-field labels render inside the input and animate upward on focus or when the input has a value. Section-level labels hide, replaced by individual field labels.

"Above" mode (default)

Email
Full name
1234 1234 1234 1234
MM / YY
CVC

"Floating" mode

Email john@example.com
Full name
Card number
MM / YY
CVC

Implementation

<BlazeCheckout
  appearance={{ labels: "floating" }}
  // ... other props
/>

API Reference

Property Type Default Description
appearance.labels "above" | "floating" "above" Controls label positioning relative to input fields
  • When "floating": section labels hide, per-field labels appear inside inputs
  • Labels animate to top-left on focus/value with CSS transition
  • Works with both "spaced" and "condensed" input modes
  • Respects disableAnimations: true