Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@mangoweb/shapes

manGoweb25MIT0.0.6TypeScript support: included

Injects svg with symbols.

readme

Shapes

The manGoweb Shapes component.

Installation

npm install @mangoweb/shapes @mangoweb/scripts-base

This is a @mangoweb/scripts-base component.

Usage

In your template:

<script>
    window.initComponents = (window.initComponents || []).push({
        name: 'Shapes',
        props: {
            url: '/shapes.svg',
        },
    })
</script>

IE support (caniuse)

Use fetch polyfill, e.g., <script src="https://polyfill.io/v3/polyfill.min.js?features=fetch"></script>