Files
Buffteks-Website/buffteks/lib/python3.12/site-packages/streamlit_antd_components/widgets/result.py
2025-05-08 21:10:14 -05:00

34 lines
892 B
Python

#!/usr/bin/env python
# _*_coding:utf-8_*_
"""
@Time : 2023/7/27 11:48
@Author : ji hao ran
@File : result.py
@Project : StreamlitAntdComponents
@Software : PyCharm
"""
from ..utils import *
def result(
label: str = None,
description: str = None,
status: Status = 'info',
icon: Union[str, BsIcon, AntIcon] = None,
key=None,
):
"""antd design result https://ant.design/components/result
:param label: result label,support str and markdown str
:param description: result description,support str and markdown str
:param status: result status
:param icon: custom icon
:param key: component unique identifier
"""
# update icon
kw = update_kw(locals(), icon=parse_icon(icon))
# pass component id and params to frontend
component(id=get_func_name(), kw=kw, key=key)