Skip to main content

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)

Uploaded Source

Built Distribution

streamlit_cardselectable-0.0.2-py3-none-any.whl (599.4 kB view hashes)

Uploaded Python 3

Supported by

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