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

Sass module support #3490

Open
sbfkcel opened this issue Jan 3, 2025 · 0 comments
Open

Sass module support #3490

sbfkcel opened this issue Jan 3, 2025 · 0 comments
Labels
cli Related to the dioxus-cli program enhancement New feature or request

Comments

@sbfkcel
Copy link

sbfkcel commented Jan 3, 2025

Feature Request

This will isolate the style of each component very well, and Sass can also make writing CSS faster.

Implement Suggestion

component.module.scss

.box {}
.btn {}
.btn__disable {}
static style: Asset = asset!("/assets/component.module.scss");
rsx! {
    div {
        class:style.box,
        button:{
                class:[style.btn,style.btn__disable],    // Support multiple class names can be represented by an array
                "Button Text"
        }
    }
}
@jkelleyrtp jkelleyrtp changed the title Hope to add sass module support Sass module support Jan 7, 2025
@jkelleyrtp jkelleyrtp added enhancement New feature or request cli Related to the dioxus-cli program labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the dioxus-cli program enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants