Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor component class creation #16

Open
filipdutescu opened this issue Apr 9, 2023 · 0 comments
Open

Refactor component class creation #16

filipdutescu opened this issue Apr 9, 2023 · 0 comments
Assignees
Labels
feature New feature or request
Milestone

Comments

@filipdutescu
Copy link
Owner

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 to yew::Classes. Similar to how the logic is done in the yew_and_bulma::elements::button::Button component.

Other relevant information

No response

@filipdutescu filipdutescu added the feature New feature or request label Apr 9, 2023
@filipdutescu filipdutescu added this to the 1.0 milestone Apr 9, 2023
@filipdutescu filipdutescu self-assigned this Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant