Big Chungus
05/24/2021, 12:15 AMattrs
without one overiding other's classes? I've tried this, but only the latest classes remain
@MDCDsl
@Composable
inline fun MDCIconButton(
icon: String,
crossinline attrs: AttrsBuilder<Tag.Button>.() -> Unit = {},
crossinline style: (StyleBuilder.() -> Unit) = {},
) {
MDCIconButton(
attrs = {
classes("mdc-icon-button", "material-icons")
attrs() // <------------------------------ If the consumer sets classes here, above classes are gone
},
style = style,
) {
Text(icon)
}
}
Akif Abasov [JB]
05/24/2021, 6:56 AMBig Chungus
05/24/2021, 11:14 AMAkif Abasov [JB]
05/24/2021, 11:47 AMBig Chungus
05/24/2021, 12:08 PMChris Sinco [G]
05/25/2021, 6:59 PM