Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 591 Bytes

Spacer.md

File metadata and controls

26 lines (19 loc) · 591 Bytes

Spacer

Spacer simply adds whitespace.
It renders a <Box> passing both basis and widthto act as a spacer.

Props

Property  Value Description
size (number) Whitespace size as a multiple of the baselineGrid.

Example

import { Spacer, Box } from 'kilvin'

export default () => (
  <Box>
    <Box>We are separated</Box>
    <Spacer size={30} />
    <Box>by 30px</Box>
  </Box>
)