JSPM

  • Created
  • Published
  • Downloads 1073
  • Score
    100M100P100Q176804F
  • License MIT

Package Exports

  • @egovernments/digit-ui-svg-components
  • @egovernments/digit-ui-svg-components/dist/main.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

1.0.0 Released as part of workbench v1.0
1.0.0-beta workbench base version beta release
0.0.8 Added RoundedCheck Icon and DeleteBtn icon with stories
0.0.7 Added Info banner icon
0.0.6 Added TickMark, Success Svg and fixed publish related issue
0.0.5 fixed publish related issue
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

Contributors

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

Documentation

Documentation Site (https://core.digit.org/guides/developer-guide/ui-developer-guide/digit-ui)

Reference

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

Maintainer

Published from DIGIT Frontend

DIGIT Frontend Repo (https://github.com/egovernments/Digit-Frontend/tree/master)

Logo