streamlit custom components of Antd Design and Mantine, modded from jihaoran's streamlit-antd-components
Project description
Streamlit-Antd-Components-mod
A modded library forked from the excellent Streamlit-Antd-Components project. https://github.com/nicedouble/StreamlitAntdComponents
This library provides component below:
buttonsA group of buttons component.dividerA divider line separates different contentmenuA versatile menu for navigationstepsA navigation bar that guides users through the steps of a task (modded to enable coloured icons in steps component)cascaderChooses cascade items in one float layer for better user experience.rateRate componentswitchSwitching between two states or on-off statetransferDouble column transfer choice boxsegmentedSegmented Controls.tabsA tabs component.treeA hierarchical list structure component.alertAlert component for feedbackresultUsed to feed back the results of a series of operational taskstagTag for categorizing or markuppaginationA long list can be divided into several pages
Install
pip install streamlit-antd-components-mod
Quickstart
Create a list of steps,use more style params.
import streamlit as st
import streamlit_antd_components_mod as sacm
items = [
sacm.StepsItem(title='title A', description='description A', icon='check'),
sacm.StepsItem(title='title B', description='description B', icon='circle-fill'),
sacm.StepsItem(title='title C', description='description C', icon='x-circle'),
]
selected_step = sacm.steps(
items=items,
size='lg',
color='grey',
direction='vertical',
icon_color_map={'check': 'green', 'circle-fill': 'yellow', 'x-circle': '#AA4A44'}
)
st.write(f'The selected step is: {selected_step}')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_antd_components_mod-0.1.7.tar.gz.
File metadata
- Download URL: streamlit_antd_components_mod-0.1.7.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5e008d328f8df8482c8ca982652a42d19486b2c2bb2dc57c0c9d3a911bfede9
|
|
| MD5 |
6ed3faae47866e00bdf67c133e504d3d
|
|
| BLAKE2b-256 |
ceaa0778a7ffb6594d5e88946f2904f62d48c87c0e1b768f85cc825d63573042
|
File details
Details for the file streamlit_antd_components_mod-0.1.7-py3-none-any.whl.
File metadata
- Download URL: streamlit_antd_components_mod-0.1.7-py3-none-any.whl
- Upload date:
- Size: 6.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bc6eb93cf1e5d5131c893ea6d89c1e036cc970bb2e70307ab41638e92a08440
|
|
| MD5 |
cb843d2de0762fcb5f463a9896cb7483
|
|
| BLAKE2b-256 |
ddacbc4b6dd52e10f1d3196057989ff3203527206e306855666e96196d71c35a
|