# Custom Component (AI Generated) - Feedback wanted! 💡

**URL:** <https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533>\
**Category:** Archived Announcements\
**Tags:** ai, layout, components\
**Created:** [July 2, 2024, 1:49am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533 "2024-07-02T01:49:43Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 22, 2024, 1:25am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/102 "2024-07-22T01:25:02Z")

</div>

Right click in your browser and go to inspect mode, in the “Elements” tab, you can click the top-left arrow, click the Custom Component element on the screen, and the code is there.

---

<div class="post-metadata">

**Author:** ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)\
**Post date:** [July 22, 2024, 2:24pm UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/103 "2024-07-22T14:24:13Z")

</div>

And with a simple custom component , Glide changes the game again! This makes so much sense as the implementation.

Within the last 5 mins , the craziest workflow example that came to mind first was a newly designed calendar component. So i google calendar design , take a screenshot and give to Claude to create the HTML , then copy/paste into Glide.

 ![Screenshot 2024-07-22 at 15.18.28](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/c/0c8526f1d6269b9185869835fc602780b63f5ba7.jpeg)  
 ![Screenshot 2024-07-22 at 15.18.43](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/5/f57bf1baec3dfebb3576964b3e39c1f5d153cf09.jpeg)  
 ![Screenshot 2024-07-22 at 15.19.22](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/d/bd10d80a517982ee086f4749d13b688f63be2dbd.jpeg)

Come on guys , when this gets polished and released fully its a whole new world. Now add on the same functionality for the backend tables , prompt to data structure and its…i don’t even know what stage to call that!

Absolutely AMAZING work here @david and the team! Cannot wait to play around with this more!

---

<div class="post-metadata">

**Author:** ![Luca\_Dipa](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/luca_dipa/32/67530_2.png) [@Luca\_Dipa](https://community.glideapps.com/u/Luca_Dipa)\
**Post date:** [July 25, 2024, 10:01am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/104 "2024-07-25T10:01:09Z")

</div>

Hey @david,

in the future you think that we will have the HTML component with minimal loading times? Because, as it is currently set up, the component is generated every time it is viewed, unlike the others (like tables, rich text ecc). Therefore, there are quite long loading times between when the page containing the component is clicked and when the component actually loads.

Maybe add a “lock” action to mantain the same html pre-saved? Just a suggestion 🙂

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)\
**Post date:** [July 25, 2024, 1:30pm UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/105 "2024-07-25T13:30:53Z")

</div>

The component is actually saved locally after the first time it’s loaded. We’ll investigate the slow startup time.

---

<div class="post-metadata">

**Author:** ![miogamer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/miogamer/32/62928_2.png) [@miogamer](https://community.glideapps.com/u/miogamer)\
**Post date:** [July 26, 2024, 10:49am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/106 "2024-07-26T10:49:49Z")

</div>

Thank you! Also i have a question about Push Notifications. Will they become Free for everyone after they leave Early Acces or will they stay a paid feature?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 26, 2024, 11:51pm UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/107 "2024-07-26T23:51:35Z")

</div>

Please keep the discussion to the main topic and create a new thread for that if you need to discuss further. Thank you.

---

<div class="post-metadata">

**Author:** ![Martin\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/martin_b/32/74360_2.png) [@Martin\_B](https://community.glideapps.com/u/Martin_B)\
**Post date:** [August 3, 2024, 10:37am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/109 "2024-08-03T10:37:24Z")

</div>

Does the area of the html custom component still shrinks after first refresh for you as well?

 ![IMG_6891](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/b/8ba4f84b4117b2589a161a4d42f98ba23a466bab.jpeg)

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [August 4, 2024, 9:27am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/110 "2024-08-04T09:27:58Z")

</div>

It looks like Glide is currently restricting the use of the YouTube Player and fullscreen features in this component. Could you please provide guidance on how we can lift these restrictions to fully utilize YouTube Player, including fullscreen mode?

---

<div class="post-metadata">

**Author:** ![Cliff\_Switzer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cliff_switzer/32/65488_2.png) [@Cliff\_Switzer](https://community.glideapps.com/u/Cliff_Switzer)\
**Post date:** [August 4, 2024, 8:57pm UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/111 "2024-08-04T20:57:12Z")

</div>

Is Glide working on this? Looks broken or different than it did a few days ago. Quick screen shot of the custom code component.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/1/d136a52e675e1c267cd8e71abd20ed6bc5054e2c.png)

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [August 4, 2024, 11:28pm UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/112 "2024-08-04T23:28:22Z")

</div>

This model prompt offers a more stable condition, waiting for you to press the enter key for processing.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 4, 2024, 11:30pm UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/113 "2024-08-04T23:30:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/1/91ebd4fd60ceeee3257c17724a1e1e78669183e1.png)

Seems like the Code component doesn’t have that problem. At least I would expect the ability to add actions.

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)\
**Post date:** [August 5, 2024, 2:35am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/114 "2024-08-05T02:35:18Z")

</div>

> [@Cliff\_Switzer](#):
>
> Quick screen shot of the custom code component.

We’ve separated the Code and AI components.

---

<div class="post-metadata">

**Author:** ![Martin\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/martin_b/32/74360_2.png) [@Martin\_B](https://community.glideapps.com/u/Martin_B)\
**Post date:** [August 5, 2024, 8:11am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/115 "2024-08-05T08:11:58Z")

</div>

About the component shrinking, chat GPT says that:

> The shrinking of the component after a refresh in your Alpine.js Tailwind component could be due to several factors, but the `viewport` setting in the `<meta>` tag is generally not the cause. The viewport meta tag you’ve used (`width=device-width, initial-scale=1`) is standard and typically ensures the page scales appropriately across different devices.

> A few potential issues to consider:
> 
> 1. **CSS Flexbox and Width Settings** : The use of `flex` and `width: 100%;` along with `max-width` on the `.card-container` might be causing the component to adjust its size dynamically. The combination of these styles could lead to shrinking if the parent container’s width changes or if the content inside changes and causes a reflow.
> 2. **Overflow and Scroll Handling** : The `overflow-x: auto` on `.swiper-container` and the manual handling of scrolling via JavaScript can sometimes lead to unexpected layout changes, especially when the content’s width is not stable or dynamically changes.
> 3. **Responsive Design** : If the parent container or the surrounding layout adapts responsively and affects the size or positioning of the `.swiper-container`, this can lead to the components appearing to shrink or resize unexpectedly.

Should i do something or its because the component is not fully "stable?

Thanks

---

<div class="post-metadata">

**Author:** ![Giovanni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/giovanni/32/74085_2.png) [@Giovanni](https://community.glideapps.com/u/Giovanni)\
**Post date:** [August 6, 2024, 7:31am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/116 "2024-08-06T07:31:32Z")

</div>

I’m testing the AI custom components and I’m already loving it! But do you guys know how to make it change dinamically from the score in a column in the database. Any time I enter new score it doesn’t update in the right way and it shows inaccurate scores. Can I make a component like this with a custom code component? How can make the custom component dynamic?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/d/ade34bd5323798fc88c2fc1a782b02b5d467845a.jpeg)

---

<div class="post-metadata">

**Author:** ![Giovanni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/giovanni/32/74085_2.png) [@Giovanni](https://community.glideapps.com/u/Giovanni)\
**Post date:** [August 6, 2024, 7:33am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/117 "2024-08-06T07:33:30Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/3/43204b6589164d641bdfb0efe0bbd2e5777712bb.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/a/8aea87ec26895903b1795beac24d46a522c9338b.png)

---

<div class="post-metadata">

**Author:** ![Giovanni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/giovanni/32/74085_2.png) [@Giovanni](https://community.glideapps.com/u/Giovanni)\
**Post date:** [August 6, 2024, 7:37am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/118 "2024-08-06T07:37:17Z")

</div>

When I update the scores I get this

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/0/a05115d4125a6b30b1cd4dd1db44a5d76c0057b8.jpeg)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 6, 2024, 7:40am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/119 "2024-08-06T07:40:44Z")

</div>

The best way to control it is using it with a Code component. That way, you can edit the code directly and not relying on the model to do it.

Starting with the AI chat is good though, then you can extract the code using inspect element \> point at the component.

---

<div class="post-metadata">

**Author:** ![Giovanni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/giovanni/32/74085_2.png) [@Giovanni](https://community.glideapps.com/u/Giovanni)\
**Post date:** [August 6, 2024, 7:43am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/120 "2024-08-06T07:43:53Z")

</div>

Thank you Thinh! How can I extract the code to paste it in the custom code component? Can you please explain to me the steps?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 6, 2024, 7:45am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/121 "2024-08-06T07:45:42Z")

</div>

> [@ThinhDinh](#):
>
> then you can extract the code using inspect element \> point at the component.

Here, basically just turn the Inspect mode on (right click in the builder, choose Inspect, Elements tab), point to the component, and you’ll find the underlying code.

---

<div class="post-metadata">

**Author:** ![Giovanni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/giovanni/32/74085_2.png) [@Giovanni](https://community.glideapps.com/u/Giovanni)\
**Post date:** [August 6, 2024, 8:21am UTC](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533/122 "2024-08-06T08:21:32Z")

</div>

Works fantastic now Thinh!!! Thank you!!!  
On top is the AI component and on the bottom is the new custom code component!

```auto
<!-- Container with standard height -->
<div class="relative w-64 h-32">
  <!-- Adjusted height to be 64 units -->
  <div class="absolute bottom-0 left-0 w-full h-full">
    <div
      class="w-full h-full bg-gradient-to-r from-red-400 via-yellow-300 to-green-400 rounded-t-full"
    ></div>
  </div>

  <!-- Scale Labels -->
  <div class="absolute bottom-1 left-2 text-xs">-1.00</div>
  <div
    class="absolute top-1 left-1/2 transform -translate-x-1/2 text-xs"
  >
    Zero
  </div>
  <div class="absolute bottom-1 right-2 text-xs">+1.00</div>

  <!-- Short/Long Labels -->
  <div
    class="absolute bottom-4 left-6 text-sm font-bold text-red-700"
  >
    Short
  </div>
  <div
    class="absolute bottom-4 right-6 text-sm font-bold text-green-700"
  >
    Long
  </div>

  <!-- Needle -->
  <div
    class="absolute bottom-0 left-1/2 w-1 h-24 bg-black origin-bottom transform"
    x-bind:style="'transform: rotate(' + (mtpi * 90) + 'deg);'"
    style="transform: rotate(-90deg);"
    data-iframe-overflow=""
  >
    <div
      class="w-0 h-0 border-l-4 border-r-4 border-b-8 border-l-transparent border-r-transparent border-b-black absolute top-0 left-1/2 transform -translate-x-1/2 -translate-y-full"
      data-iframe-overflow=""
    ></div>
  </div>

  <!-- MTPI Value Display -->
  <div
    class="absolute bottom-1 left-1/2 transform -translate-x-1/2 text-sm font-bold"
  >
    MTPI:
    <span x-text="parseFloat(mtpi).toFixed(2)"></span>
  </div>
</div>

```

 ![telegram-cloud-photo-size-4-5877324799825527620-y](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/3/734dbce4e0ce1b23a984bed0ab75a29782eaabf0.jpeg)

[Previous page](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533.md?page=5)

[Next page](https://community.glideapps.com/t/custom-component-ai-generated-feedback-wanted/74533.md?page=7)
