streamlit components of antd design
Project description
Streamlit-Antd-Components
A Streamlit component to display Antd-Design, streamlit widgets extension.
Check out the Demo App for more example.
highlight
- support streamlit theme(light or dark mode,or custom theme)
- support Bootstrap Icon
- support nested data widgets(menu,tree,cascader...)
- more style params
This library now provides component blow:
buttons
A group of buttons component.tabs
A tabs component.segmented
Segmented Controls.checkbox
A group of checkbox.menu
A versatile menu for navigationtree
A hierarchical list structure component.cascader
Chooses cascade items in one float layer for better user experience.switch
Switching between two states or on-off statedivider
A divider line separates different contenttransfer
Double column transfer choice boxalert
Alert component for feedbackrate
Rate componentsteps
A navigation bar that guides users through the steps of a task
Install
pip install streamlit-antd-components
Quickstart
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',
shape='round',
compact=False,
return_index=False,
)
st.write(f'The selected button label is: {btn}')
Todo
- Solve the problem of component(such as
DatePicker
銆乣TreeSelect銆乣cascader
) pop-up window display to obtain a better interactive experience - Interaction between components
- Add component callback function
- Optimize project structure to reduce project size
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file streamlit_antd_components-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: streamlit_antd_components-0.1.10-py3-none-any.whl
- Upload date:
- Size: 14.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14ec64ceccfe46e01f6f5c46a2a11d061cda0405bc044b58ed3bc870ecdec52e |
|
MD5 | 45a8308666a6735b020db9eff702ec9a |
|
BLAKE2b-256 | 7dee4ab52c1607706d4792e615db6116068dea4ee0741bbc05388a50d2b3a0df |