How to use the react-placeholder/lib/placeholders.TextBlock function in react-placeholder

To help you get started, we’ve selected a few react-placeholder 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 fluidtrends / chunky / web / lib / components / Text.js View on Github external
get: function get() {
      return _react2.default.createElement(
        'div',
        { style: { justifyContent: 'center' } },
        _react2.default.createElement(_placeholders.RectShape, { color: '#CFD8DC', style: { height: 40, marginBottom: 10 } }),
        _react2.default.createElement(_placeholders.TextBlock, { rows: 7, color: '#ECEFF1' })
      );
    }
  }]);

react-placeholder

A React component to easily replicate your page with nice placeholders while the content is loading

MIT
Latest version published 4 years ago

Package Health Score

57 / 100
Full package analysis