{"id":27424,"library":"streamlit-antd-components","title":"Streamlit Antd Components","description":"A library providing custom Streamlit components built on Ant Design and Mantine. Currently at version 0.3.2, it offers rich UI widgets like buttons, menus, tags, and more for Streamlit apps. Release cadence is irregular; last update was in 2023.","status":"active","version":"0.3.2","language":"python","source_language":"en","source_url":"https://github.com/nicedouble/StreamlitAntdComponents","tags":["streamlit","antd","components","ui","mantine"],"install":[{"cmd":"pip install streamlit-antd-components","lang":"bash","label":"pip"}],"dependencies":[{"reason":"Required; the library is a Streamlit extension.","package":"streamlit","optional":false}],"imports":[{"note":"Common alias is sac; using full name leads to long code.","wrong":"import streamlit_antd_components","symbol":"sac","correct":"import streamlit_antd_components as sac"}],"quickstart":{"code":"import streamlit as st\nimport streamlit_antd_components as sac\n\nmenu_item = sac.menu([\n    sac.MenuItem('Home', icon='house'),\n    sac.MenuItem('Settings', icon='gear'),\n], index=0, format_func='title', key='menu')\nst.write(f'Selected: {menu_item}')","lang":"python","description":"Create a simple menu component with Ant Design styling."},"warnings":[{"fix":"Pin Streamlit to 1.23.0 or downgrade: `pip install streamlit==1.23.0`","message":"The library only works with Streamlit version <1.24.0 due to changes in Streamlit's component communication protocol.","severity":"gotcha","affected_versions":"streamlit >=1.24.0"},{"fix":"Use `sac.buttons(['A', 'B', 'C'], ...)` instead of `sac.buttons([{'label':'A'}])`","message":"The `sac.buttons` component expects a list of strings, not a list of dicts.","severity":"deprecated","affected_versions":"0.1.0 - 0.3.2"},{"fix":"Use `import streamlit_antd_components as sac` and reference as `sac.Buttons` etc.","message":"Importing `streamlit_antd_components` directly without alias may cause namespace conflicts.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install streamlit-antd-components` in your environment.","cause":"The package is not installed or installed in the wrong environment.","error":"ModuleNotFoundError: No module named 'streamlit_antd_components'"},{"fix":"Change to `sac.buttons(['Item1', 'Item2'])`.","cause":"Passing a list of dicts to `sac.buttons` instead of a list of strings.","error":"StreamlitAPIException: Unsupported component type: object"},{"fix":"Use `sac.Buttons(...)` or import correctly: `import streamlit_antd_components as sac`.","cause":"Using a wrong alias or incorrect import; the correct spelling is `Buttons` (capital B).","error":"AttributeError: module 'streamlit_antd_components' has no attribute 'Buttons'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}