Components Forms
Input
A text field. Every attribute goes on the <input>.
$ pyblade ui:add input
Types
Disabled and invalid
Props
Written as attributes of <pb-ui.input>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.
| Name | Type | Default | Description |
|---|---|---|---|
| type | str | "text" | Any type of input: email, password, number, file ... |
| invalid | bool | False | Marks it as invalid, in red |
| class | str | "" | Added to the classes of the component. Every other attribute is spread on it too. |