Card that the user can select one of the available options. It was created as an alternative to the radio button.
Project description
# streamlit-cardselectable: A flexible and extensible content container selectable in Streamlit! <img src="https://streamlit.io/images/brand/streamlit-mark-color.png" alt="drawing" width="40"/>
## Installation
```python
pip install streamlit-cardselectable
```
## Usage
Currently, there is one function defined:
`st_cardselectable()`: In this function there are some params:
* `label`: label name.
* `options`: cards header.
* `explanation`: card text.
* `default` [optional]: index of the card that will be selected at the first moment.
## Example
### State: Initial
<img src="example/cards_init.png" alt="drawing" width="max_content"/>
### State: Selected
<img src="example/card_selected.png" alt="drawing" width="max_content"/>
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
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_cardselectable-0.0.2.tar.gz.
File metadata
- Download URL: streamlit_cardselectable-0.0.2.tar.gz
- Upload date:
- Size: 592.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.3 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
928ca165fe5311a8384a07a57e95cbc9aff3fa4eca320e25d0a0faa6ebff8002
|
|
| MD5 |
3362181a54dfe8bffa93a9865ecb232f
|
|
| BLAKE2b-256 |
1678213016bb213b2343cbbf2b02f0f092519e63dbd214ceb2aedc7fcaf25dc8
|
File details
Details for the file streamlit_cardselectable-0.0.2-py3-none-any.whl.
File metadata
- Download URL: streamlit_cardselectable-0.0.2-py3-none-any.whl
- Upload date:
- Size: 599.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.3 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed1c0b39e45bf97ccf66d67c06f3c4b62438c3163a9dd1a20774ec9de40134ad
|
|
| MD5 |
587e6e4181b66be245ca989715e008d0
|
|
| BLAKE2b-256 |
f373ac53f106b64a7377ff6c822a258ef2b0a61c1e27d08bcd9d6da95fe6a39a
|