Skip to content

Personalised gift card

A gift card form: preset or custom amount, design, recipient, message and send date, with a live preview of the card.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

Amounts and designs are real radio buttons, usable with the arrow keys; the custom amount accepts a whole number from 10 to 300 EUR. Each required field is checked on submit, the error is tied to its field with aria-describedby and focus moves to the first field to fix. The send date is limited to the coming year, a character counter follows the message and the preview shows the chosen design, amount and texts. Without JavaScript, the form still works with the browser's own validation. Connect the submission to your cart.

Code

Loading the code…

The code of this component in

Archive contents

carte-cadeau-personnalisee-html-tailwind.zip3 files · 8 Ko

  • index.html23 Ko
  • README.md3 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 3, 2026.

Reviews

No reviews yet.

In the same spirit

  • A limited-time offer bar: countdown to a fixed date, one-click copyable promo code and a fallback message once the offer is over.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A sales card showing the discount that grows with the cart amount (-10% from €50, -15% from €100…) with a progress bar towards the next tier.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A Christmas gift guide filtered by budget and theme, with the number of ideas announced and an empty state offering to show everything again.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The last order dates for delivery before Christmas, per shipping method, with the days left worked out from the visitor’s date.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
Personalised gift card — e-commerce component, HTML and React | Forge