@_with_element
def text_area(self, element, label, value='', height=None, max_chars=None, key=None):
    "Display a multi-line text input widget.\n\n        Parameters\n        ----------\n        label : str\n            A short label explaining to the user what this input is for.\n        value : any\n            The text value of this widget when it first renders. This will be\n            cast to str internally.\n        height : int or None\n            Desired height of the UI element expressed in pixels. If None, a\n            default height is used.\n        max_chars : int or None\n            Maximum number of characters allowed in text area.\n        key : str\n            An optional string to use as the unique key for the widget.\n            If this is omitted, a key will be generated for the widget\n            based on its content. Multiple widgets of the same type may\n            not share the same key.\n\n        Returns\n        -------\n        str\n            The current value of the text input widget.\n\n        Example\n        -------\n        >>> txt = st.text_area('Text to analyze', '''\n        ...     It was the best of times, it was the worst of times, it was\n        ...     the age of wisdom, it was the age of foolishness, it was\n        ...     the epoch of belief, it was the epoch of incredulity, it\n        ...     was the season of Light, it was the season of Darkness, it\n        ...     was the spring of hope, it was the winter of despair, (...)\n        ...     ''')\n        >>> st.write('Sentiment:', run_sentiment_analysis(txt))\n\n        "
    element.text_area.label = label
    element.text_area.default = str(value)
    if (height is not None):
        element.text_area.height = height
    if (max_chars is not None):
        element.text_area.max_chars = max_chars
    ui_value = _get_widget_ui_value('text_area', element, user_key=key)
    current_value = (ui_value if (ui_value is not None) else value)
    return str(current_value)
Display a multi-line text input widget.

Parameters
----------
label : str
    A short label explaining to the user what this input is for.
value : any
    The text value of this widget when it first renders. This will be
    cast to str internally.
height : int or None
    Desired height of the UI element expressed in pixels. If None, a
    default height is used.
max_chars : int or None
    Maximum number of characters allowed in text area.
key : str
    An optional string to use as the unique key for the widget.
    If this is omitted, a key will be generated for the widget
    based on its content. Multiple widgets of the same type may
    not share the same key.

Returns
-------
str
    The current value of the text input widget.

Example
-------
>>> txt = st.text_area('Text to analyze', '''
...     It was the best of times, it was the worst of times, it was
...     the age of wisdom, it was the age of foolishness, it was
...     the epoch of belief, it was the epoch of incredulity, it
...     was the season of Light, it was the season of Darkness, it
...     was the spring of hope, it was the winter of despair, (...)
...     ''')
>>> st.write('Sentiment:', run_sentiment_analysis(txt))
@_with_element
def text_area(self, element, label, value=, height=None, max_chars=None, key=None):
    "Display a multi-line text input widget.\n\n        Parameters\n        ----------\n        label : str\n            A short label explaining to the user what this input is for.\n        value : any\n            The text value of this widget when it first renders. This will be\n            cast to str internally.\n        height : int or None\n            Desired height of the UI element expressed in pixels. If None, a\n            default height is used.\n        max_chars : int or None\n            Maximum number of characters allowed in text area.\n        key : str\n            An optional string to use as the unique key for the widget.\n            If this is omitted, a key will be generated for the widget\n            based on its content. Multiple widgets of the same type may\n            not share the same key.\n\n        Returns\n        -------\n        str\n            The current value of the text input widget.\n\n        Example\n        -------\n        >>> txt = st.text_area('Text to analyze', '\n        ...     It was the best of times, it was the worst of times, it was\n        ...     the age of wisdom, it was the age of foolishness, it was\n        ...     the epoch of belief, it was the epoch of incredulity, it\n        ...     was the season of Light, it was the season of Darkness, it\n        ...     was the spring of hope, it was the winter of despair, (...)\n        ...     ')\n        >>> st.write('Sentiment:', run_sentiment_analysis(txt))\n\n        "
    element.text_area.label = label
    element.text_area.default = str(value)
    if (height is not None):
        element.text_area.height = height
    if (max_chars is not None):
        element.text_area.max_chars = max_chars
    ui_value = _get_widget_ui_value('text_area', element, user_key=key)
    current_value = (ui_value if (ui_value is not None) else value)
    return str(current_value)