streamlit-antd-components

repository·master·Indexed 20 days ago

https://github.com/nicedouble/streamlitantdcomponents

A custom Streamlit component library for integrating Antd-Design and Mantine widgets, including buttons, menus, tabs, trees, and pagination, into Streamlit applications.

Tokens
452
Snippets
2
Records
3
Agent score
19%

What's inside streamlit-antd-components

  1. Overview of available streamlit-antd-components

    master

    The library provides a variety of UI components based on Antd-Design and Mantine, including:

    • buttons: A group of buttons component.
    • divider: A divider line to separate content.
    • menu: A versatile menu for navigation.
    • steps: A navigation bar for task guidance.
    • cascader: Cascade item selection in a single floating layer.
    • checkbox: A group of checkboxes.
    • rate: A rating component.
    • switch: A toggle for two states.
    • transfer: A double-column transfer choice box.
    • segmented: Segmented controls.
    • tabs: A tabs component.
    • tree: A hierarchical list structure.
    • alert: Feedback alert component.
    • result: Feedback for operational task results.
    • tag: Categorization or markup tags.
    • pagination: Pagination for long lists.
  2. Quickstart: Create a group of buttons

    master

    Use the sac.buttons function to render a group of buttons. You can customize the layout, alignment, and styling using parameters like direction, align, and radius.

    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}')