How to use the @times-components/typeset.BoxExclusion function in @times-components/typeset

To help you get started, we’ve selected a few @times-components/typeset 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 / article-body / inline-paragraph.js View on Github external
onLayout={e => {
          const { height } = e.nativeEvent.layout;
          if (!inlineExclusion) {
            setInlineExclusion({
              exclusion: new BoxExclusion(
                0,
                0,
                contentWidth * 0.35 + spacing(2),
                height + spacing(2)
              ),
              height
            });
          }
        }}
      >

@times-components/typeset

A package for markup layout with arbitrary shapes

BSD-3-Clause
Latest version published 8 months ago

Package Health Score

78 / 100
Full package analysis

Similar packages