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
streamlit_cardselectable-0.0.2.tar.gz
(592.2 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_cardselectable-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 928ca165fe5311a8384a07a57e95cbc9aff3fa4eca320e25d0a0faa6ebff8002 |
|
MD5 | 3362181a54dfe8bffa93a9865ecb232f |
|
BLAKE2b-256 | 1678213016bb213b2343cbbf2b02f0f092519e63dbd214ceb2aedc7fcaf25dc8 |
Close
Hashes for streamlit_cardselectable-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed1c0b39e45bf97ccf66d67c06f3c4b62438c3163a9dd1a20774ec9de40134ad |
|
MD5 | 587e6e4181b66be245ca989715e008d0 |
|
BLAKE2b-256 | f373ac53f106b64a7377ff6c822a258ef2b0a61c1e27d08bcd9d6da95fe6a39a |