Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit-custom-checkbox-rpathak-0.1.0.tar.gz (100.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file streamlit-custom-checkbox-rpathak-0.1.0.tar.gz.

File metadata

File hashes

Hashes for streamlit-custom-checkbox-rpathak-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1929dbe442464895157224c5af8a99dbc8900466c5da34cecef75067b0dcd6f1
MD5 ee92fa5874c4b6fffba342639a98e1bd
BLAKE2b-256 ca3583c595755b9ef47102060496aad237e3314f7af7be7ca10a9ed3f39cbf7a

See more details on using hashes here.

File details

Details for the file streamlit_custom_checkbox_rpathak-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_custom_checkbox_rpathak-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 342972057c09b4da907c1b6a835018dbe198077517fb716da981ccaccaf480a1
MD5 cc9f8bc179c696cb7d48f407bdcc3946
BLAKE2b-256 515e615586acafd1020e0dbcd5aa97ebfc7f27b6283830e76d80a820a767ab5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page