A Streamlit custom component to implement Antd-Design and Mantine widgets.
Check out the Demo App for more example.
This library now provides component blow:
buttons
A group of buttons component.divider
A divider line separates different contentmenu
A versatile menu for navigationsteps
A navigation bar that guides users through the steps of a taskcascader
Chooses cascade items in one float layer for better user experience.checkbox
A group of checkbox.rate
Rate componentswitch
Switching between two states or on-off statetransfer
Double column transfer choice boxsegmented
Segmented Controls.tabs
A tabs component.tree
A hierarchical list structure component.alert
Alert component for feedbackresult
Used to feed back the results of a series of operational taskstag
Tag for categorizing or markuppagination
A long list can be divided into several pages
pip install streamlit-antd-components
Create a group of buttons,use more style params.
import streamlit as st
import streamlit_antd_components as sac
btn = sac.buttons(
items=['button1', 'button2', 'button3'],
index=0,
format_func='title',
align='center',
direction='horizontal',
radius='lg',
return_index=False,
)
st.write(f'The selected button label is: {btn}')
- pop-up component
Interaction between componentsAdd component callback function- multiple sac components