npm install --save @egovernments/digit-ui-components
This Package is more specific to DIGIT-UI's can be used across mission's
After adding the dependency make sure you have this dependency in
frontend/micro-ui/web/package.json
"@egovernments/digit-ui-components":"0.0.1",
then navigate to App.js
frontend/micro-ui/web/src/App.js
import { SVG } from "@egovernments/digit-ui-components";
<SVG.Accessibility />;
Use Node 14 version
Step 1
yarn install
Step 2
yarn storybook
-
Added restrictSelection prop in Multiselectdropdown. If this is sent as true, it restricts any option to get selected.
- Usage:
<MultiSelectDropdown restrictSelection={true} />
- Usage:
- Toast Component: From this version of
ui-components
, theToast
component has a new prop namedtype
, replacing the separate props forinfo
,warning
, anderror
.- Old Usage:
<Toast info={true} label={"Info Toast"} /> <Toast warning="warning" label={"Warning Toast"}/> <Toast error={true} label={"Error Toast"}/>
- New Usage:
<Toast type="info" label={"Info Toast"} /> <Toast type="warning" label={"Warning Toast"} /> <Toast type="error" label={"Error Toast"} /> <Toast type="success" label={"Success Toast"} />
- Old Usage:
- Added Error Message Component.
- Added Info Button Component.
- Added Panels Component.
- Added Popup Component with two variants:
default
andalert
. - Added RemoveableTag Component.
- Added Stepper Component.
- Added TextBlock Component.
- Added Timeline Component.
- Added Uploader Component with three variants:
UploadFile
,UploadPopup
, andUploadImage
. - Added PanelCard Molecule.
- Updated Button Component Styles.
- Updated Dropdown Component Styles and added SelectAll Option.
- Updated InfoCard Component Styles.
- Added Animation for Toast.
- Added new prop
type
for Toast, replacing the separate props forinfo
,warning
, anderror
. - Updated Typography with lineHeight.
- Updated Color Typography.
For a detailed changelog, see the CHANGELOG.md file.
DIGIT-UI-LIBRARIES Repo (https://github.com/egovernments/DIGIT-UI-LIBRARIES/tree/master)
[nabeelmd-egov] [anilsingha-eGov] [nipunarora-eGov] [swathi-egov] [jagankumar-egov]
Home Page (https://unified-dev.digit.org/storybook/)
MIT © jagankumar-egov