
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@not-govuk/navigation-menu
Advanced tools
A component that provides users with a list of pages to choose from.
First install the package into your project:
npm install -S @not-govuk/navigation-menu
Then use it in your code as follows:
import React, { createElement as h } from 'react';
import NavigationMenu from '@not-govuk/navigation-menu';
export const MyComponent = props => (
<NavigationMenu items={[
{ href: '/', text: 'Inactive 1' },
{ href: '#main-content', text: 'Active' },
{ href: '/#main-content', text: 'Inactive 2' }
]} />
);
export default MyComponent;
Before working on this package you must install its dependencies using the following command:
pnpm install
npm test
npm run build
npm run clean
FAQs
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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.