Skip to content

Forms and inputs components in HTML and CSS

Forms and inputs with labels, announced error messages and validation that helps without blocking.36 free components to copy in HTML and CSS, accessible and responsive, with a live preview.

The 36 components

  • A quote request form for tradespeople: the customer describes the work, picks a start date range and attaches up to six site photos, each with a preview, its size and a button to remove it.

    • 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
  • An honest unsubscribe page: address prefilled from the link, choice between stopping everything or receiving less, optional reason and an undo.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A callback request form: French phone number checked and formatted, topic, working day and time slot, with explicit consent to the call.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A SIRET or SIREN field that checks the Luhn key as you type, handles the La Poste exception, formats the number and links to the official business directory.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • An IBAN input grouped by 4 as you type, checking country, length and the mod-97 key, then shown masked once saved.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A French address input with suggestions from the national address database (no API key), by keyboard or mouse, filling street, postcode and city.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A hexadecimal colour field that computes a palette live (primary, hover, background, text), shows the WCAG contrast ratios and gives the CSS variables to copy.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A short form (rating, comment, optional photos) that confirms sending with an animated check mark, announced to screen readers by an aria-live region.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • 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 job estimator: service, surface area and options give a live price range, followed by a detailed quote request.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A guided complaint form: order number in the right format, reason, delivery date, description, what the customer wants and an optional photo.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A registration form that shows the remaining seats per session, blocks full sessions and caps the number of seats requested.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • An order form for in-store pickup: quantity per item, pickup day and time slot (full slots blocked) and a live total.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • An accessible switch that turns the whole site dark or light through CSS variables, remembers the choice and returns to the device setting in one click.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A date-picking calendar fully usable with the keyboard, with closed days, a minimum lead time and checked manual entry.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A password field that ticks its rules live, measures strength and can be shown or hidden with an accessible button.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A two-handle slider to pick a price range, synced with two number fields and filtering the list live.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A phone field with a country picker: the number is formatted while typing, its length is checked and it is sent in international format.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A field to type several tags with the keyboard: Enter or comma to add, cross or Backspace to remove, with duplicates and a maximum handled.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Six boxes for the code received by email or text: automatic move to the next box, whole-code paste, arrow keys and backspace.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A 1 to 5 star rating that works with the keyboard, a comment with a character counter, the first name, consent to publication and a thank-you message that recalls the rating.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A short form for independent businesses: name, phone, reason, preferred date and a morning or afternoon slot, with validation and a confirmation summary.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A keyboard-filterable dropdown to pick one or several values, shown as chips, backed by a real select field.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • An e-mail field and its button on one line, a GDPR consent checkbox, clear errors, a typo suggestion and a confirmation message.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A short form for tradespeople: type of job, description, postcode, timeframe, optional photos, then a confirmation summary.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • An appointment form: reason, day with the native date picker, morning and afternoon slots as radio buttons, full slots crossed out and a summary of the choice.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A list of settings toggled with switches, each with a description.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A compact sign-in form with password reveal and recovery link.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Fields whose label slides above the entry, in pure CSS.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Radio buttons presented as selectable cards, to pick a plan or an option.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component