add StyledSystem.Layout props to BoxKnownProps (#38525)

This commit is contained in:
Damnjan Lukovic 2019-09-24 18:52:41 +02:00 committed by Michael Crane
parent 0fdbc12154
commit e59c2e8cf4
2 changed files with 2 additions and 3 deletions

View File

@ -49,8 +49,7 @@ export interface SxProps {
interface BoxKnownProps
extends BaseProps,
StyledSystem.SpaceProps,
StyledSystem.WidthProps,
StyledSystem.HeightProps,
StyledSystem.LayoutProps,
StyledSystem.FontSizeProps,
StyledSystem.ColorProps,
StyledSystem.FlexProps,

View File

@ -26,7 +26,7 @@ const boxCss = css`
const CssBox = () => <Box css={boxCss} />;
export default () => (
<Box width={1} css={{ height: "100vh" }} py={[1, 2, 3]} ml="1em">
<Box width={1} css={{ height: "100vh" }} py={[1, 2, 3]} ml="1em" display="block">
<Flex width={1} alignItems="center" justifyContent="center">
<Heading fontSize={5} fontWeight="bold">
Hi, I'm a heading.