@commercetools-frontend/assets
TypeScript icon, indicating that this package has built-in type declarations

22.23.3 • Public • Published

@commercetools-frontend/assets

Latest release (latest dist-tag) Latest release (next dist-tag) Minified + GZipped size GitHub license

This package contains various assets that can be used in Merchant Center Custom Applications.

Install

$ npm install --save @commercetools-frontend/assets

Using SVG images

The images folder contains SVG images to be imported and used as <img src> URLs.

import React from 'react';
// Import requires a bundler to deal with SVG files
import HourglassIllustration from '@commercetools-frontend/assets/images/hourglass.svg';

const Component = () => (
  <div>
    <img src={HourglassIllustration} />
  </div>
);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @commercetools-frontend/assets

      Weekly Downloads

      7,152

      Version

      22.23.3

      License

      MIT

      Unpacked Size

      379 kB

      Total Files

      93

      Last publish

      Collaborators

      • tdeekens
      • emmenko
      • commercetools-admin