Skip to content

One of the best looking Streamlit Components! But none of them are stable! #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cssupport23 opened this issue Feb 12, 2025 · 1 comment

Comments

@cssupport23
Copy link

These are one of the best looking and promising components! I guess these are still in development stage.
I have tried Tree, Paging, Tabs . They look really nice , but are not stable at all.
Tree , does not work as expected , fires post back multiple times.Same with Paging and Tabs. Or I am doing something wrong?
Great work though!

@christian-heins-velero
Copy link

christian-heins-velero commented Mar 6, 2025

i would suggest adding a specific key to each element to avoid caching issues. Most of the "weird" behaviour went away with this. Could you also be more specific on what you mean?

        options = ["opt1", "opt2", "opt3"]

        # Create a segmented control widgt Segmented control uses bootstrap icons
        sac_tabs = sac.tabs([
            sac.TabsItem(label=options[0], icon="0-square-fill"),
            sac.TabsItem(label=options[1], icon="arrow-left-right"),
            sac.TabsItem(label=options[2], icon="arrow-clockwise"),
        ],
            align='center',
            position="top",
            size="xs", # xs, sm, md, lg, xl, 25
            #variant="outline",
            use_container_width=True,
            color="#2E55A5",
            key="specific-key-for-this-element"
        )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants