Skip to content

Event registration with remaining seats

A registration form that shows the remaining seats per session, blocks full sessions and caps the number of seats requested.

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

Description

For a workshop, tour or talk with several sessions, visitors immediately see how many seats are left for each one; a full session is shown as “Full” and cannot be picked. The number of seats requested is capped at 4 per registration, and at the remaining seats of the chosen session, with help text that adapts. On submit, each error (session, name, email, number of seats) is flagged with aria-invalid and a clear message linked to the field, and focus moves to the first field to fix. Once the registration is accepted, the confirmation appears in a role="status" region and the remaining seats update, down to “Full”. Seats are described in data-gie-left attributes, to be fed from your booking tool; saving registrations plugs into your server. Labelled native fields, autocomplete, AA contrast in light and dark mode, no horizontal scrolling from 360 px. Example: a free composting workshop at a community centre.

Code

Loading the code…

The code of this component in

Archive contents

formulaire-inscription-evenement-html-tailwind.zip3 files · 6 Ko

  • index.html11 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A recruitment form for small businesses: target position, introduction, CV checked in the browser and GDPR consent, with inline errors.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A quote request form whose labels, hints and error messages are full French sentences, still readable at 320 px: nothing overflows, nothing is cut off, and each error is tied to its field.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Visitors pick a package and tick options: the pre-tax total, VAT and total including tax update live, and the summary is sent with the contact form.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A short NPS survey: a 0 to 10 score as radio buttons, then a follow-up question adapted to whether the customer is a detractor, passive or promoter.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component