Input

A text input component for forms and user data entry with built-in styling and accessibility features.

buridan add input

Component Guide

Use the following to build the Input component.

from components.ui.input import input

Source Code & Dependencies

For manual installation, copy each of the source codes below in their respective locations.

components/core/core.py

components/ui/input.py

Examples

Basic Demo

The default appearance and behavior. type defaults to "text" if not set.

Props used: none required beyond default input(...).

Text Input

Email

Props used: type="email" on input.

Email Input

Password

Props used: type="password" on input.

Password Input

Disabled

Props used: disabled on input.

Disabled Input

File Input

Native file styling (file: classes) is already baked into the base input styles.

Props used: type="file" on input.

File Input

Custom Input

Props used: class_name on input.

Custom Width

API Reference

input

input(id="email", type="email", placeholder="you@example.com")
Prop Type Default
type str "text"
disabled bool False
value / default_value str
id str
name str
on_change EventHandler
class_name str ""

Any other prop accepted by a native <input> is also passed straight through.