nicedouble / StreamlitAntdComponents

A Streamlit component to display Antd-Design
https://nicedouble-streamlitantdcomponentsdemo-app-middmy.streamlit.app/
MIT License
340 stars 23 forks source link
antd-design components streamlit

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

This library now provides component blow:

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

buttons

Todo