
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
govuk-react-components
Advanced tools
A set of react components to build the basic elements descibed in govuk-elements.
This is very Work In Progress code at the moment so you almost certainly don't want it anywhere near production right now.
Contributions are welcome.
Install the package and any dependencies you have:
# Install govuk-react-components
npm install --save govuk-react-components
# This project assumes react & prop-types are installed already. If not use the following
npm install --save govuk-react-components react prop-types
Components can then be used in the following way:
import React from 'react';
import { Input, Button } from 'govuk-react-components';
const MyForm = () => (
<form>
<Input name="name"
label="First name"
hint="Some additional information"
error="Oh no! You broke it!"
value="HELLO!"
/>
<Button>Submit</Button>
</form>
);
export default MyForm;
To include the necessary stylesheets and assets in your nodejs app you can - if you are using express - mount the included middleware to serve these files:
app.use(require('govuk-react-components/middleware').assets());
There is a basic example app in ./example. To run it:
$ cd example
$ npm start
$ open http://localhost:8080
Thanks goes to these wonderful people (emoji key):
Leonard Martin 💬 💻 📖 💡 🤔 👀 ⚠️ | James Gee 💬 💻 📖 💡 🤔 👀 ⚠️ | Simon Bailey 💻 ⚠️ |
|---|
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
React components for govuk layouts and elements
The npm package govuk-react-components receives a total of 134 weekly downloads. As such, govuk-react-components popularity was classified as not popular.
We found that govuk-react-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.