gilbarbara/styled-minimal

View on GitHub
src/Screen.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import PropTypes from 'prop-types';
import styled from 'styled-components';

import Box, { basePropTypes } from './Box';

const Screen = styled(Box)({});

Screen.displayName = 'Screen';

Screen.propTypes = {
  as: PropTypes.string,
  children: PropTypes.node.isRequired,
  minHeight: PropTypes.string,
  ...basePropTypes,
};

Screen.defaultProps = {
  minHeight: '100vh',
};

export default Screen;