Box
Box is a primitive component that distributes alignment and spacing.
Prop name | Type | Description |
flex | boolean | Display a box as flex . |
inline | boolean | Uses inline display. |
import React from 'react'
import { Box } from 'atomic-layout'
export const Header = ({ children }) => (
<Box as="header" padding={10} paddingMd={20}>
{children}
</Box>
)
Last modified 3yr ago