Input fields
<form>
  <div class="mb-6 grid gap-6 md:grid-cols-2">
    <flowbite-form-field>
      <label flowbiteLabel>First Name</label>
      <input flowbiteInput placeholder="John" />
    </flowbite-form-field>

    <flowbite-form-field>
      <label flowbiteLabel>Last Name</label>
      <input flowbiteInput placeholder="Doe" />
    </flowbite-form-field>

    <flowbite-form-field>
      <label flowbiteLabel>Company</label>
      <input flowbiteInput placeholder="Flowbite" />
    </flowbite-form-field>

    <flowbite-form-field type="number">
      <label flowbiteLabel>Phone Number</label>
      <input flowbiteInput placeholder="123-45-678" />
    </flowbite-form-field>

    <flowbite-form-field>
      <label flowbiteLabel>Website URL</label>
      <input flowbiteInput placeholder="flowbite.com" />
    </flowbite-form-field>

    <flowbite-form-field>
      <label flowbiteLabel>Unique visitors (per month)</label>
      <input flowbiteInput />
    </flowbite-form-field>
  </div>

  <div class="mb-6">
    <flowbite-form-field>
      <label flowbiteLabel>Email address</label>
      <input flowbiteInput placeholder="john.doe@company.com" />
    </flowbite-form-field>
  </div>

  <div class="mb-6">
    <flowbite-form-field type="password">
      <label flowbiteLabel>Password</label>
      <input flowbiteInput placeholder="•••••••••" required />
    </flowbite-form-field>
  </div>

  <div class="mb-6">
    <flowbite-form-field type="password">
      <label flowbiteLabel>Confirm Password</label>
      <input flowbiteInput placeholder="•••••••••" required />
    </flowbite-form-field>
  </div>

  <flowbite-button>Submit</flowbite-button>
</form>
Input Sizes
<div class="mb-6">
  <flowbite-form-field size="large">
    <label flowbiteLabel>Large Input</label>
    <input flowbiteInput />
  </flowbite-form-field>
</div>

<div class="mb-6">
  <flowbite-form-field size="default">
    <label flowbiteLabel>Default Input</label>
    <input flowbiteInput />
  </flowbite-form-field>
</div>

<flowbite-form-field size="small">
  <label flowbiteLabel>Small Input</label>
  <input flowbiteInput />
</flowbite-form-field>
Disabled Inputs
<flowbite-form-field disabled>
  <label flowbiteLabel>Disabled input</label>
  <input flowbiteInput />
</flowbite-form-field>
<flowbite-form-field disabled>
  <label flowbiteLabel>Disabled readonly input</label>
  <input flowbiteInput readonly />
</flowbite-form-field>
Validation

Well done! Some success message.

Oh, snapp! Some error message.

<flowbite-form-field validation="success">
  <label flowbiteLabel>Success Input</label>
  <input flowbiteInput />
  <p class="text-sm" flowbiteHelper>
    <span class="font-medium">Well done!</span> Some success message.
  </p>
</flowbite-form-field>

<flowbite-form-field validation="error">
  <label flowbiteLabel>Error Input</label>
  <input flowbiteInput />
  <p flowbiteHelper>
    <span class="font-medium">Oh, snapp!</span> Some error message.
  </p>
</flowbite-form-field>
Input Group
@
<flowbite-form-field>
  <label flowbiteLabel>Your Email</label>
  <svg flowbiteIcon aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"></path><path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"></path></svg>
  <input flowbiteInput placeholder="name@flowbite.com" />
</flowbite-form-field>
<flowbite-form-field>
  <label flowbiteLabel>Username</label>
  <span flowbiteAddon>@</span>
  <input flowbiteInput placeholder="elonmusk" />
</flowbite-form-field>
Helper Text

We’ll never share your details. Read our Privacy Policy .

<flowbite-form-field>
  <label flowbiteLabel>Your Email</label>
  <input flowbiteInput placeholder="name@flowbite.com" />
  <p flowbiteHelper>We’ll never share your details. Read our <a href="#" class="font-medium text-blue-600 hover:underline dark:text-blue-500">Privacy Policy </a>.</p>
</flowbite-form-field>