Streamlit Carousel UUI
A Streamlit component that implements the beautiful Untitled UI carousel design. This component provides a sleek, modern carousel with navigation buttons and indicator dots, perfect for showcasing images in your Streamlit applications.
Features
- 🎨 Beautiful Untitled UI design
- 🖼️ Smooth image transitions
- 🎯 Navigation arrows and indicator dots
- 📱 Responsive design
- ⚡ Built with Embla Carousel and React
- 🎭 Two size variants (md and lg)
- 🔧 Easy to use and customize
Installation
You can install the package using pip:
pip install streamlit-carousel-uui
Or install from source:
git clone https://github.com/janduplessis883/streamlit_carousel_uui.git
cd streamlit_carousel_uui
pip install -e .
Usage
import streamlit as st
from streamlit_carousel_uui import uui_carousel
st.title("Untitled UI Carousel Demo")
# Define your carousel items
slides = [
{
"image": "https://images.unsplash.com/photo-1506744038136-46273834b3fb",
"title": "Mountain View",
"description": "Explore the majestic peaks and valleys."
},
{
"image": "https://images.unsplash.com/photo-1470770841072-f978cf4d019e",
"title": "Lake Side",
"description": "Serene waters reflecting the sky."
},
{
"image": "https://images.unsplash.com/photo-1441974231531-c6227db76b6e",
"title": "Forest Path",
"description": "A journey through nature's canopy."
},
]
# Display the carousel
uui_carousel(items=slides, variant="md")
API Reference
uui_carousel(items, variant="md", key=None)
Display an Untitled UI styled carousel component.
Parameters
-
items (list of dict): List of carousel items. Each item should contain:
image(str, required): URL or path to the imagetitle(str, optional): Title text displayed on the slidedescription(str, optional): Description text displayed on the slide
-
variant (str, optional): Size variant of the carousel
"md"(default): Medium size buttons and indicators"lg": Large size buttons and indicators
-
key (str or None, optional): An optional key that uniquely identifies this component
Development
Prerequisites
- Python >= 3.7
- Node.js >= 14
- npm or yarn
Setup Development Environment
- Clone the repository:
git clone https://github.com/janduplessis883/streamlit_carousel_uui.git
cd streamlit_carousel_uui
- Install Python dependencies:
pip install -e .
- Install frontend dependencies:
cd frontend
npm install
- Start the development server:
npm start
- In another terminal, run your Streamlit app:
streamlit run example.py
Building for Production
- Build the frontend:
cd frontend
npm run build
- Build the Python package:
python setup.py sdist bdist_wheel
- Upload to PyPI:
twine upload dist/*
Credits
This component is based on the carousel design from Untitled UI, implemented as a Streamlit component.
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
If you encounter any issues or have questions, please open an issue on GitHub.
Metadata
Release files for streamlit-carousel-uui 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamlit_carousel_uui-0.1.4.tar.gz | 451.6 kB | Without provenance | Details for streamlit_carousel_uui-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamlit_carousel_uui-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for streamlit_carousel_uui-0.1.4-py3-none-any.whl |
Total release size: 906.7 kB
Release files / streamlit_carousel_uui-0.1.4.tar.gz
| Download URL | streamlit_carousel_uui-0.1.4.tar.gz |
|---|---|
| Size | 451.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b09ea336532a6eaae4dc9a526e956343239a59240c8571f199385939061aad82
|
|
BLAKE2b-256 checksum How to use checksums |
f35897d63ed4e7a54b8c4efd007b08ffddc8d0aaa029f2a6090ef69a0f8150be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / streamlit_carousel_uui-0.1.4-py3-none-any.whl
| Download URL | streamlit_carousel_uui-0.1.4-py3-none-any.whl |
|---|---|
| Size | 455.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b210e5b32666bd45da5a679e389cae70deba55ac42a8b892326021ef48cb5aae
|
|
BLAKE2b-256 checksum How to use checksums |
66c3e6ddfdfc75fd29dd1978f848134e1d738c48b597e7086bd2a311a49bec81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for streamlit-carousel-uui 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.