
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@govie-ds/react
Advanced tools
This library should only be imported for departments actively working with the core design system team during its development. Do not use this library if you are not part of this development process, and contact the design system team instead if you interested in its use.
Welcome to the GOV IE React component library, a collection of reusable React components designed to help you build modern React web applications utilising the GOV IE design system.
Status: Alpha
Important Note: This library is currently in the alpha stage. As we continue to develop and improve the components, frequent breaking changes are to be expected. We appreciate your understanding and patience as we work towards a stable version 1.0.
To install the library, use the following command:
npm install @govie-ds/react @govie-ds/theme-govie
We strongly recommend that you pin the GOV IE design system packages, so that any regressions are not automatically introduced during development. Regressions that will only be discoverable at runtime.
Upgrades should be explicit version updates in the package.json and then your application should be regression tested:
"dependencies": {
- "@govie-ds/theme-govie": "^0.1.2",
+ "@govie-ds/theme-govie": "0.1.2",
- "@govie-ds/react": "^0.1.6",
+ "@govie-ds/react": "0.1.6"
Import the GOV IE theme.css from the @govie-ds/theme-govie theme package at the entry point of your application, for example:
+import '@govie-ds/theme-govie/theme.css'
export function App() {
return (
...
);
}
Note that you should typically run some form of CSS reset or normalisation of styles as part of your application entry point, depending on your application styling solution. For example Tailwind includes preflight, an optinionated set of base styles.
Use components within your application from the @govie-ds/react component package:
import { Header } from '@govie-ds/react';
export function MyComponent() {
return (
<>
<Header serviceName="My Service" />
</>
);
}
The @govie-ds/react package contains Heading and Paragraph components that implement the GOV IE design system responsive text guidelines:
import { Heading, Paragraph } from '@govie-ds/react';
function MyComponent() {
return (
<>
<Heading>Heading</Heading>
<Paragraph>This is a paragraph</Paragraph>
</>
);
}
The GOV IE design system uses the Lato Google font. The font should be added to your application, e.g. via next/font, Fontsource or embed code.
To support multiple languages across your application, we use the initI18n utility provided by @govie-ds/react. This ensures consistency, accessibility, and localization across all components.
Before rendering your app, make sure to initialize i18n with your language resources:
import { initI18n } from '@govie-ds/react';
initI18n({
resources: {
en: {
translation: {
// Component namespaces go here
},
},
fr: {
translation: {
// Component namespaces go here
},
},
ar: {
translation: {
// Component namespaces go here
},
},
},
lng: 'en', // Default language
});
The pagination component uses the following i18n keys:
resources: {
en: {
translation: {
pagination: {
previous: 'Previous',
next: 'Next',
page: 'Page {{currentPage}} of {{totalPages}}',
goToPage: 'Go to page {{page}}',
goToPrevious: 'Go to previous page',
goToNext: 'Go to next page',
},
},
},
fr: {
translation: {
pagination: {
previous: 'Précédent:,
next: 'Suivant',
page: 'Page {{currentPage}} sur {{totalPages}}',
goToPage: 'Aller à la page {{page}}',
goToPrevious: 'Aller à la page précédente',
goToNext: 'Aller à la page suivante',
},
},
},
}
Note: Each component in the design system documents its relevant i18n keys under an i18n Keys heading, if available, for example Pagination i18n Keys. Be sure to refer to this section when using or implementing a component to ensure all necessary translations are provided.
We welcome contributions! If you have suggestions for improvements, please feel free to open an issue or submit a pull request.
Your feedback is invaluable to us. Please share your thoughts and experiences to help us make this library better.
FAQs
The GOV IE design system React components.
The npm package @govie-ds/react receives a total of 162 weekly downloads. As such, @govie-ds/react popularity was classified as not popular.
We found that @govie-ds/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Google’s UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.