JSPM

  • Created
  • Published
  • Downloads 1073
  • Score
    100M100P100Q176778F
  • 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 specifically designed for DIGIT-UI but can be used across various missions.

Usage

After adding the dependency, make sure you have this dependency in

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

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 importing 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

Summary for Version [1.0.10] - 2024-06-05

For a detailed changelog, see the CHANGELOG.md file.

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

Branch details (https://github.com/egovernments/Digit-Frontend/tree/develop)

Logo