thedodd / ybc

A Yew component library based on the Bulma CSS framework.
Apache License 2.0
258 stars 37 forks source link

Update readme example to be immediately runnable #9

Open thedodd opened 3 years ago

thedodd commented 3 years ago

Right now there is some content left out for brevity. Seems like that has been tripping-up some folks. Either change the example or make it complete.

MarkAnthonyM commented 3 years ago

If pulling from some examples that already exist would work for you and make it easier/save time, maybe you could lift some of the examples from this reference repo I've been putting together? The examples I wrote feel quite long winded though, might not be the most succinct and/or best...

quinnjr commented 3 years ago

I've been constantly looking back and forth and the source code for ybc since I started incorporating it, and I think the major pain point, at least for me, is the lack of concrete examples in the reference generated over on docs.rs. That's something I could sweep through and try to make more clear over a weekend when I have time.

I'd also suggest doing an examples folder of a few simple apps using ybc, like a TodoMVC and something showcasing button styling, etc...

thedodd commented 3 years ago

Agreed. I think long-term, building a site which somewhat mirrors the Bulma docs using YBC components would be excellent.

That will definitely take a fair bit of time and effort, so starting small with some examples (as you've mentioned) would definitely be a big win.

quinnjr commented 3 years ago

I started on a TodoMVC using ybc this afternoon. Looks nice, but some changes to ybc will be necessary to make it 100% ybc-flavored components (eg: adding support for a onkeypress callback on ybc::Input)

Sample