How to use the @times-components/sticky.selectors.containsSticky function in @times-components/sticky

To help you get started, we’ve selected a few @times-components/sticky 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-skeleton / src / sticky-save-and-share-bar.js View on Github external
]};
`;

// This is to avoid transition styles being server side rendered which we
// do not need. They'll be quite large and are unnecessary on initial render
function SaveShareContainerWrapper(props) {
  return (
     }
      server={() => }
    />
  );
}

const StyledKeylineItem = styled(ArticleKeylineItem)`
  ${selectors.containsSticky(css`
    border-bottom-color: transparent;
  `)};
`;

const shouldBeSticky = mediaQuery(`(max-width: ${breakpoints.huge}px)`);

function StickySaveAndShareBar(props) {
  return (
    
      
        
      

@times-components/sticky

Attach children to viewport on scroll (web only)

BSD-3-Clause
Latest version published 4 months ago

Package Health Score

78 / 100
Full package analysis