DioxusLabs / DioxusLabs/dioxus
Sass module support
Open
cli
enhancement
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## 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
```scss
.box {}
.btn {}
.btn__disable {}
```
```rust
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"
}
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.