Holy smokes this is next level innovation for sure. Staggering. Can’t wait to brainstorm some ideas…
First up - displaying the formation of a football team with some cool interactions to add player names…. Can the input data be in the form of an array?
Pretty sure this solves the half star rating challenge too… eg. How to display fractions of a star rating since emojis don’t offer them.
I could see a fitness App displaying dynamic measurements for a body silhouette… or a training program designed by AI displaying a figure that shows focus zones on the body.
You mentioned a calculator - and I do remember a march months challenge (in 2021) by @Jeff_Hager where I worked quite a few hours creating a calculator.
Using the new component with the following prompt
create an old fashion calculator. Make the buttons work so
input can be given on the calculator. clicking the result
button must show the result of the calculation the
calculator should fill the whole screen
gives a calculator app like below - and it works.
This beyond belief
@david To me, the most interesting thing to know is whether you can freeze/lock the functionality of the component when you have got it working. If the app is working and the AI model behind the component changes and thereby changes the functionality of the component then i won’t feel comfortable implementing it in a business app.
Is it possible to create some sort of gallery/library of user examples in the community chat with the prompts? This would be so useful - inspirational - for fellow Gliders?
I have managed to get the AI generated code by inspecting the component in the browser dev tools. That way I can copy and paste the code into the HTML section of the custom component
it seems that the components are built using alpineJS and tailwind? which has allowed me to write custom components into the HTML section of the custom component… I have been playing around with components from here Tailwind CSS and Alpine JS Accordion | Penguin UI
but also found you can search alpinejs and tailwind components and there are heaps online… it does mean you might have to write some code but it’s not too bad and using the ai generated code first and then tweaking it in code is what I’ve found the easiest
it also seems that we can perform some javascript inside this code component for transitions and calculations and a whole lot more… this is very very cool!