✨ Announcing our seed funding led by Lux Capital! Read more about it on our blog
DocsBlogChangelog

Search documentation...

/

Star

12k+

[ Learn ]

[ Concepts ]

[ Reference ]

TextArea


The TextArea component allows you to easily create multi-line text inputs.

Hello World!

class TextareaState(rx.State):
    text: str = "Hello World!"


def index():
    return rx.vstack(
        rx.heading(TextareaState.text),
        rx.text_area(
            value=TextareaState.text,
            on_change=TextareaState.set_text,
        ),
    )
Alternatively, you can use the on_blur event handler to only update the state when the user clicks away. Similar to the Input component, the TextArea is also implemented using debounced input when it is fully controlled. You can tune the debounce delay by setting the debounce_timeout when creating the TextArea component. You can find examples of how it is used in DebouncedInput component.

TextArea


A text area component.


← SwitchUpload →

Copyright © 2023 Pynecone, Inc.