Create utility for adding space between components
This commit is contained in:
parent
a73632637f
commit
fb303354e2
1 changed files with 9 additions and 0 deletions
9
web/src/main/kotlin/components/Space.kt
Normal file
9
web/src/main/kotlin/components/Space.kt
Normal 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) } }
|
Loading…
Reference in a new issue