This documentation is under construction. Pages can be missing or change at any time. Follow it on GitHub.

Skip to content

Input

A native input element that automatically works with Field.

API reference#

Import the components of the family:

use function Phem\Ui\Input;

Input#

A native text input: Base UI Input. In a Field, it is the control of the field. Bind it to a state of the app with phem:bind, or give its first value in defaultValue.

PropTypeDefault
value?Boundnull
defaultValue?stringnull
disabledboolfalse
...restmixed—

The source of the examples: examples/ui/Input.phem.

Phem
Esc
↑↓ to navigate↵ to openEsc to close