Step Hint Checkout Form

This checkout form previews the next step inline, helping users understand progress without introducing a full multi-step layout.

HTML

<form class="checkout-step">
  <input type="text" placeholder="Billing name" />
  <span class="checkout-step__hint">Next: Payment</span>
  <button type="submit">Continue</button>
</form>

CSS

.checkout-step {
  width: 200px;
  padding: 0.8rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0,0,0,0.14);
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.checkout-step input {
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
}

.checkout-step__hint {
  font-size: 11px;
  color: #6b7280;
}

.checkout-step button {
  padding: 0.45rem;
  border-radius: 999px;
  border: none;
  background: #6366f1;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .checkout-step {
    background: #020617;
  }

  .checkout-step input {
    background: #020617;
    border-color: #374151;
    color: #e5e7eb;
  }

  .checkout-step__hint {
    color: #9ca3af;
  }
}

Notes

  • Progress clarity without stepper UI
  • Keeps checkout visually lightweight
  • Works well in modal flows

Preview styles shown. Production customization recommended.

Browse More UI Components

Explore hundreds of reusable HTML & CSS UI components built for modern web projects.
Discover buttons, cards, loaders, animations, layouts, and more all with live previews and clean, copy-paste code.

Leave a Reply

Your email address will not be published. Required fields are marked *