You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a component's CSS class creation is very linked to the component function. This is less than ideal for testing and logically, since that code is, with the exception of it being passed to the html! macro, completely decoupled from any component logic,
Proposal
Implement the From<T> trait for all component properties in order to have a conversion to yew::Classes. Similar to how the logic is done in the yew_and_bulma::elements::button::Button component.
Other relevant information
No response
The text was updated successfully, but these errors were encountered:
Description
Currently, a component's CSS class creation is very linked to the component function. This is less than ideal for testing and logically, since that code is, with the exception of it being passed to the
html!
macro, completely decoupled from any component logic,Proposal
Implement the
From<T>
trait for all component properties in order to have a conversion toyew::Classes
. Similar to how the logic is done in theyew_and_bulma::elements::button::Button
component.Other relevant information
No response
The text was updated successfully, but these errors were encountered: