What is @ministryofjustice/frontend?
@ministryofjustice/frontend is a frontend toolkit designed to help developers build consistent and accessible web applications for the Ministry of Justice. It provides a set of reusable components, styles, and patterns that adhere to the Ministry's design guidelines.
What are @ministryofjustice/frontend's main functionalities?
Form Elements
This feature provides styled form elements such as input fields, labels, and form groups to ensure consistency and accessibility in form design.
<form>
<div class="moj-form-group">
<label class="moj-label" for="input-example">Example label</label>
<input class="moj-input" id="input-example" name="input-example" type="text">
</div>
</form>
Buttons
This feature offers pre-styled buttons that can be used to maintain a consistent look and feel across different web applications.
<button class="moj-button">Submit</button>
Navigation
This feature provides navigation components that help in creating consistent and accessible navigation menus.
<nav class="moj-navigation">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
Other packages similar to @ministryofjustice/frontend
govuk-frontend
govuk-frontend is a frontend toolkit for building user interfaces that are consistent with the GOV.UK design system. It offers a wide range of components, styles, and patterns similar to @ministryofjustice/frontend but is tailored for general use across all UK government services.
uswds
The United States Web Design System (uswds) provides a set of design guidelines and reusable components for building accessible and consistent web applications for U.S. government services. It is similar to @ministryofjustice/frontend but is tailored for U.S. government use.
bootstrap
Bootstrap is a popular open-source frontend framework that provides a wide range of components, styles, and utilities for building responsive and mobile-first web applications. While it is not specifically tailored for government use, it offers similar functionalities to @ministryofjustice/frontend.