Streamlit Extras

1.4.1 · active · verified Wed Apr 15

Streamlit Extras is a community-driven collection of useful Streamlit components and utilities designed to extend Streamlit's core functionality. It provides a wide range of 'extras' for common UI patterns, interactivity, and backend integrations that are not natively available in Streamlit. The library is actively maintained with frequent minor releases adding new features and fixing bugs, currently at version 1.4.1.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to use `stylable_container` to apply custom CSS to a section of your Streamlit app, how to add a `badge`, and how to use `no_footer` to remove the default Streamlit footer. Many other extras follow a similar import and usage pattern.

import streamlit as st
from streamlit_extras.stylable_container import stylable_container
from streamlit_extras.no_footer import no_footer
from streamlit_extras.badges import badge

st.set_page_config(layout="centered")
st.title("Streamlit Extras Quickstart")

with stylable_container(
    key="my_stylable_container",
    css_styles="""
        {
            border: 2px solid #4CAF50;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
        }
        """
):
    st.subheader("A Stylable Section")
    st.write("This content is wrapped in a container with custom CSS.")
    st.button("Hello from inside!")

badge(type="info", text="Powered by Streamlit Extras")

# Example of removing Streamlit's default footer
no_footer()

view raw JSON →