How to use @bbc/psammead-assets - 5 common examples

To help you get started, we’ve selected a few @bbc/psammead-assets 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 bbc / psammead / packages / components / psammead-embed-error / src / index.jsx View on Github external
const EmbedError = ({ service, message, fillViewport }) => (
  
    
      {coreIcons.alert}
      <strong>{message}</strong>
    
  
);
github bbc / psammead / packages / components / psammead-program-card / src / index.jsx View on Github external
duration,
}) =&gt; (
  
    
      
        {heading}
      
      
        {date}
      
      
        {summary}
      
    
    
      {mediaIcons.audio}
      {duration}
    
  
);
github bbc / psammead / packages / components / psammead-media-player / src / Guidance / index.jsx View on Github external
const Guidance = ({ guidanceMessage, service, children }) =&gt; {
  return (
    
      
        <content>
          {mediaIcons.guidance}
          {guidanceMessage}
        </content>
      
      {children}
    
  );
};
github bbc / psammead / packages / components / psammead-navigation / src / DropdownNavigation / index.jsx View on Github external
export const CanonicalMenuButton = ({
  announcedText,
  isOpen,
  onClick,
  dir,
  script,
}) =&gt; (
  
    {isOpen ? navigationIcons.cross : navigationIcons.hamburger}
  
);

@bbc/psammead-assets

A collection of common assets that are likely to be required by many Psammead components or users, such as SVGs or small scripts.

Apache-2.0
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis