As discussed in https://github.com/leptos-rs/leptos/discussions/2640, the ToChildren trait is useful to consumers who want to use the builder syntax. However, because it is currently annotated with #[docs(hidden)], it's not visible in docs and also not included in Jetbrains's auto-complete.
Add a doc comment for the ToChildren trait, including doc tests that demonstrate how to use the trait and how it compares to directly creating children.
As discussed in https://github.com/leptos-rs/leptos/discussions/2640, the
ToChildren
trait is useful to consumers who want to use the builder syntax. However, because it is currently annotated with#[docs(hidden)]
, it's not visible in docs and also not included in Jetbrains's auto-complete.Add a doc comment for the
ToChildren
trait, including doc tests that demonstrate how to use the trait and how it compares to directly creating children.