Components Forms
Textarea
A field for several lines of text. The slot is its initial text.
$ pyblade ui:add textarea
A textarea
Props
Written as attributes of <pb-ui.textarea>; 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 |
|---|---|---|---|
| rows | int | 4 | How many lines show |
| invalid | bool | False | Marks it as invalid |
| class | str | "" | Added to the classes of the component. Every other attribute is spread on it too. |