Closed xian closed 1 month ago
Details - #2240
@xian did you checked #2240 and related documentation? Current behaviour is expected - no changes planned.
Drawer {
attrs.classes = jso {
root = ClassName(themeStyles.appDrawer)
paperAnchorLeft = ClassName(themeStyles.appDrawerPaper)
}
attrs.variant = DrawerVariant.persistent
attrs.open = props.open
attrs.onClose = handleClose
…
Any clues much appreciated. @turansky
attrs
? With kotlin-react
you will have more options ;)Possible solutions:
val Switch = BaseSwitch.styled {
width = 32.px
height = 20.px
and(switchClasses.thumb) {
width = 14.px
height = 14px
}
val MyComponent = FC {
Switch()
}
css
blockBaseSwitch.styled {
width = 32.px
height = 20.px
and(switchClasses.thumb) {
width = 14.px
height = 14px
}
}
val MyComponent = FC {
BaseSwitch {
css {
width = 32.px
height = 20.px
and(switchClasses.thumb) {
width = 14.px
height = 14px
}
// props
}
}
style
tag - detailsOther options probably need some additional helpers
e.g.
mui.material.PaperClasses
fields should be mutable:but between 1.0.0-pre.729 and 1.0.0-pre.774 it became: