How to use the styled-config.getPadding function in styled-config

To help you get started, we’ve selected a few styled-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aichbauer / styled-bootstrap-components / packages / styled-form-component / src / components / FormControlPlainText.js View on Github external
const padding = (props) => (
  (props.sm || props.lg) &&
  css`
    padding-right: ${getPadding(props, 'formControlPlainText', 'smRight')};
    padding-left: ${getPadding(props, 'formControlPlainText', 'smLeft')};
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-form-component / src / components / FormCheck.js View on Github external
const paddingLeft = (props) => (
  props.inline &&
  css`
    padding-left: ${getPadding(props, 'formCheck', 'inlineLeft')};
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-navbar-component / src / components / NavbarLink.js View on Github external
const padding = (props) => (
  props.brand &&
  css`
    padding-top: ${getPadding(props, 'navbarLink', 'brandTop')};
    padding-bottom: ${getPadding(props, 'navbarLink', 'brandBottom')};
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-tooltip-component / src / components / Tooltip.js View on Github external
const padding = (props) => (
  (props.left || props.right)
    ? css`
        padding: ${getPadding(props, 'tooltip', 'leftRight')};
      `
    : css`
      padding: ${getPadding(props, 'tooltip', 'topBottom')};
    `
);
github aichbauer / styled-bootstrap-components / packages / styled-jumbotron-component / src / components / Jumbotron.js View on Github external
padding: ${(props) => {
    if (props.pill) {
      return getPadding(props, 'jumbotron', 'lgPill');
    }

    return getPadding(props, 'jumbotron', 'sm');
  }};
  };
github aichbauer / styled-bootstrap-components / packages / styled-tooltip-component / src / components / Tooltip.js View on Github external
const padding = (props) => (
  (props.left || props.right)
    ? css`
        padding: ${getPadding(props, 'tooltip', 'leftRight')};
      `
    : css`
      padding: ${getPadding(props, 'tooltip', 'topBottom')};
    `
);
github aichbauer / styled-bootstrap-components / packages / styled-badge-component / src / components / Badge.js View on Github external
const padding = (props) => {
  if (props.pill) {
    return css`
      padding: ${getPadding(props, 'badge', 'pill')};
    `;
  }

  return css`padding: ${getPadding(props, 'badge', 'default')};`;
};
github aichbauer / styled-bootstrap-components / packages / styled-jumbotron-component / src / components / Jumbotron.js View on Github external
const padding = (props) => {
  if (props.fluid) {
    return css`
      padding-right: ${getPadding(props, 'jumbotron', 'fluidRight')};
      padding-left: ${getPadding(props, 'jumbotron', 'fluidLeft')};
    `;
  } else if (props.pill) {
    return css`
      padding: ${getPadding(props, 'jumbotron', 'pill')};
    `;
  }

  return css`
    padding: ${getPadding(props, 'jumbotron', 'default')};
  `;
};
github aichbauer / styled-bootstrap-components / packages / styled-jumbotron-component / src / components / Jumbotron.js View on Github external
const padding = (props) => {
  if (props.fluid) {
    return css`
      padding-right: ${getPadding(props, 'jumbotron', 'fluidRight')};
      padding-left: ${getPadding(props, 'jumbotron', 'fluidLeft')};
    `;
  } else if (props.pill) {
    return css`
      padding: ${getPadding(props, 'jumbotron', 'pill')};
    `;
  }

  return css`
    padding: ${getPadding(props, 'jumbotron', 'default')};
  `;
};
github aichbauer / styled-bootstrap-components / packages / styled-badge-component / src / components / Badge.js View on Github external
const padding = (props) => {
  if (props.pill) {
    return css`
      padding: ${getPadding(props, 'badge', 'pill')};
    `;
  }

  return css`padding: ${getPadding(props, 'badge', 'default')};`;
};

styled-config

The configuration for styled-bootstrap-components

MIT
Latest version published 5 years ago

Package Health Score

48 / 100
Full package analysis

Popular styled-config functions