@_with_element
def success(self, element, body):
    "Display a success message.\n\n        Parameters\n        ----------\n        body : str\n            The success text to display.\n\n        Example\n        -------\n        >>> st.success('This is a success message!')\n\n        "
    element.alert.body = _clean_text(body)
    element.alert.format = Alert_pb2.Alert.SUCCESS
Display a success message.

Parameters
----------
body : str
    The success text to display.

Example
-------
>>> st.success('This is a success message!')
@_with_element
def success(self, element, body):
    "Display a success message.\n\n        Parameters\n        ----------\n        body : str\n            The success text to display.\n\n        Example\n        -------\n        >>> st.success('This is a success message!')\n\n        "
    element.alert.body = _clean_text(body)
    element.alert.format = Alert_pb2.Alert.SUCCESS