-
Hi everyone 🤗. I'm currently trying to wrap implement a Typography component which will hold different variants: h1, h2, h3..., p, etc. I wonder if this is the best way to do it. I used to do this pattern in Yew: implement a custom function to the enum to render what I'm looking for.
I'm also open to a better pattern if that doesn't work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Check out this section of the guide: https://leptos-rs.github.io/leptos/view/06_control_flow.html?highlight=Into_any#note-type-conversions |
Beta Was this translation helpful? Give feedback.
-
Check out this section of the guide: https://leptos-rs.github.io/leptos/view/06_control_flow.html?highlight=Into_any#note-type-conversions |
Beta Was this translation helpful? Give feedback.
Check out this section of the guide: https://leptos-rs.github.io/leptos/view/06_control_flow.html?highlight=Into_any#note-type-conversions