pypi streamlit-shadcn-ui 1.6.0
Streamlit Shadcn UI 1.6.0

one hour ago

Streamlit Shadcn UI 1.6.0

Version 1.6.0 lets applications open a Sheet from Python and place charts
and static tables inside Elements panels. Three examples show how to use
those APIs and Streamlit forms.

Edit a record from a row action

When a Data Table row action fires, pass a fresh nonempty string to
el.sheet(open_request=..., trigger_label=None) to open the editor without
a second click. Keep the Sheet key stable and pass None on subsequent
reruns. The mounted Sheet remembers its last request after dismissal.
The editor validates the name before saving, keeps invalid drafts open,
and restores the saved values when an edit is canceled and reopened.
Sheet API · Record editor

Show a chart and its underlying table

An Elements builder now accepts el.table and line, area, bar, pie, radar,
and radial charts. The example places a chart in a Summary tab and the
underlying records in a Details tab. A chart mounts when its panel becomes
visible so it can measure the available width. Data from every panel counts
toward the Elements root's 2 MiB payload limit. Use the standalone
ui.data_table for sorting, selection, or row actions.
Chart API · Table API · Chart and table tabs

Keep a draft across form steps

The report setup example validates a report name on the first step and
collects a schedule on the second. State-only Elements fields live inside
native st.form blocks. The submit buttons save each step to
st.session_state, so going back preserves the name and frequency.
Two-step report setup

Input limits and host support

Data Table rejects a DataFrame with more than 1,000 rows before converting
it to records. It reads at most 1,001 rows from an iterator to enforce the
same limit. Elements checks its 1,000-node limit as children are added.
Data Table limits

Python 3.10 and Streamlit 1.60 remain the minimum versions. CI exercises
Python 3.10 with Streamlit 1.60.0 and Python 3.14.2 with Streamlit 1.61.1.
Both configurations pin Starlette 1.3.1. The latter builds the distribution
archives and exercises all three examples in Chromium.
Components workflow

Distribution files

Install with pip install streamlit-shadcn-ui==1.6.0. PyPI 1.6.0

Don't miss a new streamlit-shadcn-ui release

NewReleases is sending notifications on new releases.