1.4.0 • Published 9 months ago

@muraldevkit/ds-icons-animated v1.4.0

Weekly downloads
-
License
https://www.mural...
Repository
-
Last release
9 months ago

Animated icons

JSON files used by Lottie to generate animated SVGs for Mural's design system.

Table of contents

  1. Installation
  2. Usage

Installation

Review the design system's global usage guidelines to learn how to install our packages. This package's name is @muraldevkit/ds-icons-animated.

Usage

After you have installed the package into your project, you can import the JSON files you need into your file. This is a hybrid package which outputs both CommonJs(https://requirejs. org/docs/commonjs.html) and ECMAScript modules.

// ESM
import { llamaBlack } from '@muraldevkit/ds-icons-animated';

// CommonJS
const llamaBlack = require('@muraldevkit/ds-icons-animated');

If you need to import a file directly from the dist folder of the package, be sure to use the path of the appropriate subfolder for your module, i.e. dist/cjs for CommonJs and dist/esm for ESM.

Once you have imported the JSON file you wish to render, you can pass it to the animated SVG component (mrl-svg-animate in @muraldevkit/ds-component-svg) as a prop:

const icon = <mrl-svg-animate svg-data={ JSON.stringify(llamaBlack) } />;
1.4.0

9 months ago

1.3.1

9 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.3.0

10 months ago

1.0.1

2 years ago

1.0.0

2 years ago