Create utility for adding space between components

This commit is contained in:
Shreyas 2021-06-06 23:43:45 +05:30
parent a73632637f
commit fb303354e2

View file

@ -0,0 +1,9 @@
package components
import kotlinx.css.LinearDimension
import kotlinx.css.margin
import react.RBuilder
import styled.css
import styled.styledDiv
fun RBuilder.Space(space: LinearDimension) = styledDiv { css { margin(space) } }