livebook-dev / kino

Client-driven interactive widgets for Livebook
Apache License 2.0
361 stars 60 forks source link

Add Kino.Wizard POC #426

Open josevalim opened 4 months ago

josevalim commented 4 months ago

@hugobarauna check the docs for a proof of concept for you to try it out. I can flesh it out if we decide to include it in. The first argument to init has an origin, which can be used to identify the actual user.

Note: @jonatanklosko didn't like the function style and would prefer a handle_event style.

hugobarauna commented 4 months ago

@josevalim, I think we can move forward with that. 👍

And if by _"jonatanklosko didn't like the function style and would prefer a handleevent style.", it means that the API will be closer to a LiveView API; I agree with him.

While I was trying to use Kino.Wizard, I struggled a little with understanding how to use it. If it's closer to LiveView, it would be easier for me, as someone who has a basic understanding of how to write a LiveView.