# All files / elements/typography/codeElements/utils props.js

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28

    8x

    8x

     import propTypes from '@styled-system/prop-types';
    import { defaultStylesBase, typography } from 'src/utils/styledHelpers';

    export const codePropTypes = {
      ...typography.propTypes,
      ...propTypes.background,
      ...propTypes.border,
      ...propTypes.color,
      ...propTypes.flexbox,
      ...propTypes.layout,
      ...propTypes.position,
      ...propTypes.shadow,
      ...propTypes.space,
    };

    export const codeDefaultProps = {
      ...defaultStylesBase,
      background: 'whitesmoke',
      border: '1px solid #eee',
      borderRadius: 4,
      color: 'inherit',
      display: 'inline-block',
      fontFamily: 'monospace',
      fontSize: '80%',
      my: 0,
      p: 1,
    };