Magnus Nilsson
10/24/2022, 5:19 PMstyled()
from mui (https://mui.com/system/styled) using kotlin-wrappers? I tried this but it does not seem to work (I guess because the imported styled is emotion.styled.styled
).
val MyBox = Box.styled { props, _ ->
<http://props.sx|props.sx> {
display = responsive(
<http://Breakpoint.sm|Breakpoint.sm> to Display.none,
Breakpoint.md to Display.flex,
)
flexGrow = responsive(
Breakpoint.md to number(1.0),
Breakpoint.lg to number(3.0),
)
}
}
turansky
10/24/2022, 6:13 PMval MyBox = Box.styled { _, _ ->
display = responsive(
<http://Breakpoint.sm|Breakpoint.sm> to Display.none,
Breakpoint.md to Display.flex,
)
flexGrow = responsive(
Breakpoint.md to number(1.0),
Breakpoint.lg to number(3.0),
)
}
?Magnus Nilsson
10/24/2022, 6:42 PMturansky
10/24/2022, 8:01 PM