JSPM

  • Created
  • Published
  • Downloads 1044
  • Score
    100M100P100Q176886F
  • License MIT

Package Exports

  • @egovernments/digit-ui-svg-components
  • @egovernments/digit-ui-svg-components/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@egovernments/digit-ui-svg-components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

digit-ui-svg-components

Install

npm install --save @egovernments/digit-ui-svg-components

Limitation

This Package is more specific to DIGIT-UI's can be used across mission's

Usage

After adding the dependency make sure you have this dependency in

frontend/micro-ui/web/package.json
"@egovernments/digit-ui-svg-components":"0.0.1",

then navigate to App.js

 frontend/micro-ui/web/src/App.js

SVGs can be imported from svg component libraries and also from digit-ui-react-components^1.5.27 package

Syntax for import any svgs

from svg library

import { Accessibility } from "@egovernments/digit-ui-svg-components";

<Accessibility />;

from digit-ui-react-components

import { SVG } from "@egovernments/digit-ui-react-components";

<SVG.Accessibility />;

or;

import { SVG } from "@egovernments/digit-ui-react-components";

const { Accessibility } = SVG;
<Accessibility />;

Changelog

0.0.4 fixed some fill related issue
0.0.3 Added NoResultsFoundicon,StarFilled , Star Empty and Fixed issue on  NoResultsFoundicon
0.0.2 added the prototypes and playground stories for all svgs
0.0.1 base version

Published from DIGIT Core

Digit Core Repo (https://github.com/egovernments/Core-Platform/tree/digit-ui-core)

Contributors

[nabeelmd-egov] [anil-egov] [jagankumar-egov]

Reference

Home Page (https://unified-dev.digit.org/storybook-svg/)

License

MIT © jagankumar-egov