Skip to main content

streamlit customer components of Antd Design and Mantine

Project description

Streamlit-Antd-Components

Open in Streamlit GitHub PyPI download

A Streamlit custom component to implement Antd-Design and Mantine widgets.

Check out the Demo App for more example. demo

highlight

  • support streamlit theme(light or dark mode,or custom theme)
  • support Bootstrap Icon
  • support nested data widgets(menu,tree,cascader...)
  • more components to display data
  • more style params (size,color,radius,variant...)

This library now provides component blow:

  • 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
  • cascader Chooses cascade items in one float layer for better user experience.
  • checkbox A group of checkbox.
  • 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

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',
    radius='lg',
    compact=False,
    return_index=False,
)
st.write(f'The selected button label is: {btn}')

buttons

Todo

  • pop-up component
  • Interaction between components
  • Add component callback function
  • multiple sac components

Project details


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.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_antd_components-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 621558351745e0ff15c4b511cb1d83aa85c4d5fc9dfb5fe5f54a26b40c328b28
MD5 8398dea4c8bd5c5adda21ed1b32080a6
BLAKE2b-256 2c1e667956ef5dfb64a71f3732e94bcef7b0b1204fbbce153b2f9113b96476fd

See more details on using hashes here.

Supported by

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