# Streamlit Elements Problem

**URL:** <https://discuss.streamlit.io/t/streamlit-elements-problem/46930>\
**Category:** Custom Components\
**Created:** [July 10, 2023, 4:32pm UTC](https://discuss.streamlit.io/t/streamlit-elements-problem/46930 "2023-07-10T16:32:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aritra](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Aritra](https://discuss.streamlit.io/u/Aritra)\
**Post date:** [July 10, 2023, 4:32pm UTC](https://discuss.streamlit.io/t/streamlit-elements-problem/46930/1 "2023-07-10T16:32:34Z")

</div>

### Summary

Streamlit Elements is a component that gives you the tools to compose beautiful applications with Material UI widgets, Monaco, Nivo charts, and more. It also includes a feature to create draggable and resizable dashboards. I also wanna use this in my app, but unable to create the below cards using streamlit\_elements. Can anyone kindly help with the code ?

The main creator of streamlit\_elements is @okld.

**Questions** :

1. Can we use Card component of MUI in streamlit\_elements ? if so kindly provide me the code for the food card.
2. Is it possible to put the streamlit\_highcharts inside a Card component MUI in streamlit\_elements? if so kindly give me some example how ?
3. Is it possible to show the data received from a python function on a Card Component using streamlit\_elements ?

### Links

- Here is the @okld’s post link: [✨ Streamlit Elements - Build draggable and resizable dashboards with Material UI, Nivo charts, and more! - #61 by lkdd-ao](https://discuss.streamlit.io/t/streamlit-elements-build-draggable-and-resizable-dashboards-with-material-ui-nivo-charts-and-more/24616/61)
- Link of @okld’s deployed app: [https://okld-gallery.streamlit.app/?p=elements](https://okld-gallery.streamlit.app/?p=elements)

Trying to achieve the below one:

 ![mui_1](https://global.discourse-cdn.com/streamlit/original/3X/8/6/8641fd8b7c220a7d6bd1578057c2d95f075a3e12.png)  
 ![mui_2](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf514f438494e9951a38ba70647020ea52103754.png)

---

<div class="post-metadata">

**Author:** ![Caroline](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/caroline/32/38736_2.png) [@Caroline](https://discuss.streamlit.io/u/Caroline)\
**Post date:** [July 16, 2023, 5:51pm UTC](https://discuss.streamlit.io/t/streamlit-elements-problem/46930/2 "2023-07-16T17:51:24Z")

</div>

Hey @Aritra,

Thanks for sharing this question! If you’re looking to reproduce some of the pieces of @okld’s demo app, check out the source code [here](https://github.com/okld/streamlit-gallery/blob/main/streamlit_app.py).

For your second and third questions, can you share what you’ve tried so far to implement this? We can point you in the right direction.

---

<div class="post-metadata">

**Author:** ![Aritra](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Aritra](https://discuss.streamlit.io/u/Aritra)\
**Post date:** [July 20, 2023, 3:12pm UTC](https://discuss.streamlit.io/t/streamlit-elements-problem/46930/3 "2023-07-20T15:12:54Z")

</div>

Hey @Caroline Thank you for your response. I somehow able to solve the 2nd question using high charts itself, But for the 3rd question, I’m scraping the information from a website and now I want to show that information inside that Card Element. How I can achieve that ? Kindly refer the below image for reference, I want to show the data like this inside a card component.

![card_componenet](https://global.discourse-cdn.com/streamlit/original/3X/b/e/becff8fc29761ba959c397f02cbdae32629443d0.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [April 5, 2024, 1:33am UTC](https://discuss.streamlit.io/t/streamlit-elements-problem/46930/5 "2024-04-05T01:33:59Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
