Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@department-of-veterans-affairs/component-library
Advanced tools
VA.gov component library. Includes React and web components.
This module contains reusable React and Web components for the VA.gov design system published as an NPM package for use in the vets-website frontend codebase.
npm install @department-of-veterans-affairs/component-library
import { COMPONENTNAME } from '@department-of-veterans-affairs/component-library'
See design system or Storybook for a full list of available components.
The issue tracker is disabled on this repo. To request a new component or a feature enhancement, please open an issue here
The Design System team is working on replacing the React components in this library with Web Component versions. This isn't just a React replacement however - part of the goal is to have true components that can be used outside of React in plain HTML pages.
To use these Web Components in your own project, follow the installation steps. This will allow the components to be used in JSX or HTML.
Submit a PR that includes all of your code changes. This should include the bump in versions you need, which you can change directly in the package.json
files for the modules that are changing. Modules like component-library
depend on formation
via a peer dependency, so you may need to update that as well. We try to keep the peer dependency loose and only update it for breaking changes.
Please add a clear list of changes to your PR description. We have been using Keep a changelog informally and have had good success with it.
You'll need to choose what type of version update to make:
patch
- for bug fixes and minor changesminor
- for new features that don't break current features or require changes in consuming applicationsmajor
- for backwards breaking changesIf you are unsure of what to pick, do a major version update on modules that are changing.
Once your changes are approved, squash merge them to main. Also, if your change is a breaking change, please prefix your commit message with BREAKING CHANGE:
. Also keep in mind that your commit messages will be in a changelog that people use to figure out what has changed between releases, so make sure it accurately describes your changes.
If you are not part of the Design System team, please submit a support request in #vfs-platform-support to the Design System Team requesting to create a new release with your changes.
The last step is to update the package.json
files of consuming apps to use the latest version of @department-of-veterans-affairs/formation
(or component-library
). For example, if you are working with the vets-website
project, open the vets-website
's package.json
to update the version number of the @department-of-veterans-affairs/formation
entry listed in the dependencies
section. The version number should match what you just published to NPM.
FAQs
VA.gov component library. Includes React and web components.
The npm package @department-of-veterans-affairs/component-library receives a total of 582 weekly downloads. As such, @department-of-veterans-affairs/component-library popularity was classified as not popular.
We found that @department-of-veterans-affairs/component-library demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 31 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.