
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
streamlit-carbon-button
Advanced tools
Beautiful Carbon Design System buttons for your Streamlit apps! 🎨
pip install streamlit-carbon-button
import streamlit as st
from streamlit_carbon_button import carbon_button, CarbonIcons
# Simple button
if carbon_button("Click me!"):
st.success("Button clicked!")
# Button with icon
if carbon_button("Save", icon=CarbonIcons.SAVE):
st.success("Saved!")
# Default button with teal shadow
if carbon_button("Submit", is_default=True):
st.balloons()
# Primary (default) - Subtle grey
carbon_button("Primary", button_type="primary")
# Secondary - With border
carbon_button("Secondary", button_type="secondary")
# Danger - Red accent
carbon_button("Delete", button_type="danger")
# Ghost - Minimal style
carbon_button("Cancel", button_type="ghost")
All 18 available Carbon icons:
CarbonIcons.ADD CarbonIcons.CLOSE CarbonIcons.COPY
CarbonIcons.DELETE CarbonIcons.DOWNLOAD CarbonIcons.UPLOAD
CarbonIcons.SAVE CarbonIcons.SEARCH CarbonIcons.SETTINGS
CarbonIcons.FILTER CarbonIcons.HOME CarbonIcons.INFO
CarbonIcons.WARNING CarbonIcons.SUCCESS CarbonIcons.HELP
CarbonIcons.DOCUMENT CarbonIcons.CHART_BAR CarbonIcons.PLAY
Mark important actions with a subtle teal shadow:
col1, col2 = st.columns(2)
with col1:
if carbon_button("Save", is_default=True):
st.success("Saved!")
with col2:
if carbon_button("Cancel", button_type="ghost"):
st.info("Cancelled")
# Perfect for toolbars
cols = st.columns(4)
with cols[0]:
if carbon_button("", icon=CarbonIcons.ADD):
st.info("Add")
with cols[1]:
if carbon_button("", icon=CarbonIcons.EDIT):
st.info("Edit")
# Change default based on state
is_edited = st.session_state.get('edited', False)
if carbon_button("Save", is_default=is_edited):
st.success("Saved!")
st.session_state.edited = False
if carbon_button("Submit Application", use_container_width=True):
st.success("Submitted!")
carbon_button(
label: str, # Button text
key: str = None, # Unique key
button_type: str = "primary", # primary|secondary|danger|ghost
icon: str = None, # Icon from CarbonIcons
disabled: bool = False, # Disable state
use_container_width: bool = False,# Full width
is_default: bool = False, # Teal shadow indicator
) -> bool # True when clicked
MIT License - see LICENSE for details.
Carbon Design System icons are used under Apache 2.0 License.
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.