Spacer
Adds spacing between nodes. If no size is specified, it will span between the nodes.
Usage
Code
import { createSystem } from 'frog/ui'
const { Box, Spacer } = createSystem()
function Example() {
return (
<Box gap="8" grow>
<Box backgroundColor="red" height="20" width="100%" />
<Spacer />
<Box backgroundColor="red" height="20" width="100%" />
<Spacer size="20" />
<Box backgroundColor="red" height="20" width="100%" />
</Box>
)
}
Spacer
Properties
size
Spacing size.
Code
<Spacer size="012346810121416182022242628303234363840424446485256606472809612816019222425620" />