A custom checkbox component for Streamlit
Project description
Streamlit Custom Checkbox
A custom checkbox component for Streamlit with enhanced styling.
Installation
pip install streamlit-custom-checkbox-rpathak
Usage
import streamlit as st
from streamlit_custom_checkbox import st_custom_checkbox
# Basic usage
result = st_custom_checkbox("Approve Document")
# With initial value
result = st_custom_checkbox("Enable Feature", value=True)
# Disabled checkbox
result = st_custom_checkbox("Disabled Option", disabled=True)
Development
To build the frontend:
cd streamlit_custom_checkbox/frontend
npm install
npm run build
Features
- Custom styling with green accent color
- Dynamic border and background color changes
- Support for disabled state
- Proper Streamlit integration
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit-custom-checkbox-rpathak-0.1.0.tar.gz.
File metadata
- Download URL: streamlit-custom-checkbox-rpathak-0.1.0.tar.gz
- Upload date:
- Size: 100.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1929dbe442464895157224c5af8a99dbc8900466c5da34cecef75067b0dcd6f1
|
|
| MD5 |
ee92fa5874c4b6fffba342639a98e1bd
|
|
| BLAKE2b-256 |
ca3583c595755b9ef47102060496aad237e3314f7af7be7ca10a9ed3f39cbf7a
|
File details
Details for the file streamlit_custom_checkbox_rpathak-0.1.0-py3-none-any.whl.
File metadata
- Download URL: streamlit_custom_checkbox_rpathak-0.1.0-py3-none-any.whl
- Upload date:
- Size: 100.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
342972057c09b4da907c1b6a835018dbe198077517fb716da981ccaccaf480a1
|
|
| MD5 |
cc9f8bc179c696cb7d48f407bdcc3946
|
|
| BLAKE2b-256 |
515e615586acafd1020e0dbcd5aa97ebfc7f27b6283830e76d80a820a767ab5a
|