cfnz / muirwik

Muirwik - a Material UI React wrapper written in Kotlin
Mozilla Public License 2.0
132 stars 25 forks source link

mAppBar(elevation = 0) elevation - doesn't exists #53

Closed theromis closed 3 years ago

theromis commented 3 years ago

trying to follow theme examples, one on nice features is "flat" toolbar, unfortunately can't find binding for it.

cfnz commented 3 years ago

You are right... AppBarProps should have inherited from PaperProps.

This was a quick fix, so I released it. You can get it with the latest version and then by attrs.elevation... eg.:

mAppBar(position = MAppBarPosition.static) {
    attrs.elevation = 0
    mToolbar {
        mIconButton("menu", color = MColor.inherit) { css { marginLeft = -12.px; marginRight = 20.px }}
        mToolbarTitle("Flat (elevation = 0)")
        mIconButton ("account_circle", color = MColor.inherit )
    }
}
theromis commented 3 years ago

@cfnz thank you for quick fix