Skip to main content

streamlit custom components of Antd Design and Mantine, modded from jihaoran's streamlit-antd-components

Project description

Streamlit-Antd-Components-mod

Open in Streamlit GitHub PyPI download

A modded library forked from the excellent Streamlit-Antd-Components project. https://github.com/nicedouble/StreamlitAntdComponents

This library provides component below:

  • buttons A group of buttons component.
  • divider A divider line separates different content
  • menu A versatile menu for navigation
  • steps A navigation bar that guides users through the steps of a task (modded to enable coloured icons in steps component)
  • cascader Chooses cascade items in one float layer for better user experience.
  • rate Rate component
  • switch Switching between two states or on-off state
  • transfer Double column transfer choice box
  • segmented Segmented Controls.
  • tabs A tabs component.
  • tree A hierarchical list structure component.
  • alert Alert component for feedback
  • result Used to feed back the results of a series of operational tasks
  • tag Tag for categorizing or markup
  • pagination A long list can be divided into several pages

Install

pip install streamlit-antd-components-mod

Quickstart

Create a group of buttons,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}')

buttons

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

streamlit_antd_components_mod-0.1.4.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file streamlit_antd_components_mod-0.1.4.tar.gz.

File metadata

File hashes

Hashes for streamlit_antd_components_mod-0.1.4.tar.gz
Algorithm Hash digest
SHA256 941774b9489b25e5bc4b0672b69c80f2959df18a9012a91c52554ef61e174aea
MD5 edf8479bb4a00fb0a8f7e3755a4124a2
BLAKE2b-256 0353a01c21860d2137f42a955579df4a37786ed97ae24ded32d370cc8b5438ac

See more details on using hashes here.

File details

Details for the file streamlit_antd_components_mod-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_antd_components_mod-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d81cada7121d3d6270ebc3ba7a9d5c5646a9a0b7fbf008a05ad64145ded55d5d
MD5 43e0ebd1daceb1fcba8d22810473d808
BLAKE2b-256 1c21e0bc3c36419cab31dac7f24dcc2d920fb13b0c0605de75662bb4a1778959

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page