Inputs
Examples
Section titled “Examples”Variants
Section titled “Variants”<input class="input input-bordered" placeholder="Bordered (default)" /><input class="input input-ghost" placeholder="Ghost" /><input class="input input-danger" placeholder="Danger" value="invalid" /><Input placeholder="Bordered (default)" /><Input variant="ghost" placeholder="Ghost" /><Input variant="danger" defaultValue="invalid" /><input class="input input-bordered input-sm" placeholder="Small" /><input class="input input-bordered" placeholder="Medium" /><input class="input input-bordered input-lg" placeholder="Large" /><Input inputSize="sm" placeholder="Small" /><Input placeholder="Medium" /><Input inputSize="lg" placeholder="Large" />Disabled
Section titled “Disabled”<input class="input input-bordered" disabled value="Disabled" /><Input disabled defaultValue="Disabled" />Input forwards the native type attribute.
<input class="input input-bordered" type="email" placeholder="you@example.com"/><input class="input input-bordered" type="password" placeholder="Password" /><input class="input input-bordered" type="number" placeholder="42" /><input class="input input-bordered" type="date" /><input class="input input-bordered" type="time" /><input class="input input-bordered" type="search" placeholder="Search" /><input class="input input-bordered" type="url" placeholder="https://example.com"/><input class="input input-bordered" type="tel" placeholder="+45 12 34 56 78"/><Input type="email" placeholder="you@example.com" /><Input type="password" placeholder="Password" /><Input type="number" placeholder="42" /><Input type="date" /><Input type="time" /><Input type="search" placeholder="Search" /><Input type="url" placeholder="https://example.com" /><Input type="tel" placeholder="+45 12 34 56 78" />Date and time
Section titled “Date and time”The browser renders the native picker. The calendar glyph is toned via ::-webkit-calendar-picker-indicator; dark mode is handled by color-scheme.
<input class="input input-bordered" type="date" /><input class="input input-bordered" type="time" /><input class="input input-bordered" type="datetime-local" /><input class="input input-bordered" type="month" /><input class="input input-bordered" type="week" /><Input type="date" /><Input type="time" /><Input type="datetime-local" /><Input type="month" /><Input type="week" />Use FileInput (.file-input class) to style the picker button. Plain <input type="file" class="input"> leaves it browser-default.