How to use @times-components/caption - 2 common examples

To help you get started, we’ve selected a few @times-components/caption 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 newsuk / times-components / packages / article / src / article-body / inset-caption.web.js View on Github external
padding-left: 0px;
  }
`;

const InsetCaptionWeb = ({ caption, credits }) => (
  
    
  
);

InsetCaptionWeb.propTypes = {
  ...Caption.propTypes
};

InsetCaptionWeb.defaultProps = {
  ...Caption.defaultProps
};

export default InsetCaptionWeb;
github newsuk / times-components / packages / article / src / article-body / inset-caption.web.js View on Github external
const InsetCaptionStyle = styled(View)`
  padding-left: ${spacing(2)};

  @media (min-width: ${breakpoints.medium}px) {
    padding-left: 0px;
  }
`;

const InsetCaptionWeb = ({ caption, credits }) => (
  
    
  
);

InsetCaptionWeb.propTypes = {
  ...Caption.propTypes
};

InsetCaptionWeb.defaultProps = {
  ...Caption.defaultProps
};

export default InsetCaptionWeb;

@times-components/caption

Media caption component

BSD-3-Clause
Latest version published 6 months ago

Package Health Score

78 / 100
Full package analysis