Streamlit Shadcn UI 1.2.1
Number Input now uses the default dimensions of the repository's generated
shadcn Input and icon Button. The 1.2.0 adapter overrode both to 44 px, making
the control larger than the rest of the library. This patch removes those
overrides. With the current shadcn preset, the field is 32 px high and each
step button is 32 by 32 px.
Both ui.number_input and el.number_input use the corrected component.
The numeric state, validation, stepping, keyboard interaction, callbacks,
and public API are unchanged. No generated shadcn source or dependency was
modified.
pip install --upgrade streamlit-shadcn-ui==1.2.1See the Number Input documentation.
Verification
- 83 Python tests and 82 frontend unit tests passed. TypeScript, the production
build, and generated-source/import checks passed with Node 22.20.0 and
pnpm 11.18.0. - Browser measurements confirmed 32 px heights for ordinary Input, Number
Input, and Button, including Number Input inside Elements. Icon buttons
measured 32 by 32 px. Font size and border radius match the existing controls.
Step buttons, typed values, and nested numeric updates reached Python. - The installed wheel passed the complete-catalog browser test in Chromium,
Firefox, and WebKit using Python 3.10.9 and Streamlit 1.60.0. - Wheel and source distribution passed metadata and bundled-asset checks.
Both installed successfully; the source distribution was also checked with
Python 3.14.2 and Streamlit 1.61.1. Installed asset hashes match the build.
Artifacts
| Artifact | SHA-256 |
|---|---|
streamlit_shadcn_ui-1.2.1-py3-none-any.whl
| 02b7667dc5951dfeac0dc3743b7ed642a7a69a0c0a3befdbf408184f600cc442
|
streamlit_shadcn_ui-1.2.1.tar.gz
| 658f5a0406d29cedc84c83c33f06a001004a95f06dc3fb4c0d9b5505e43645f5
|