LWC StudioStart designing

Input Field generator

Forms are where most Lightning apps lose users. Style lightning-input fields with floating or stacked labels, a clear focus ring and consistent border radius so multi-step forms feel like one product.

Your changes autosave in this browser, and the link above reproduces this exact configuration for anyone you send it to.

Live preview
Generated code
<template>
    <lightning-input
        label="Email Address"
        placeholder="you@company.com"
        variant="label-hidden"
        type="text"
        class="studio-input"
        onchange={handleChange}
    ></lightning-input>
    <label class="studio-input__floating-label">Email Address</label>
</template>

Design tips for input fields

  • Match the focus ring color to your primary action color so the eye follows the same accent through a form.
  • Floating labels save vertical space on dense forms; stacked labels are more accessible for longer field names.
  • Keep border radius consistent between inputs and the buttons that submit them.