Socket
Socket
Sign inDemoInstall

@govuk-react/top-nav

Package Overview
Dependencies
32
Maintainers
5
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @govuk-react/top-nav

Styled top navigation header with numerous constituent parts input as props.


Version published
Weekly downloads
3.3K
decreased by-11.66%
Maintainers
5
Install size
3.28 MB
Created
Weekly downloads
 

Readme

Source

TopNav

Import

  import TopNav from '@govuk-react/top-nav';

The GOV.UK header shows users that they are on GOV.UK and which service they are using.

  • https://govuk-react.github.io/govuk-react/?path=/docs/top-nav
  • https://design-system.service.gov.uk/components/header/

Properties

PropRequiredDefaultTypeDescription
bgColorundefinedstringTop nav background color
childrenundefinedanyList Navigation items with anchor tags e.g. NavAnchor components
colorundefinedstringTop nav text color
company<IconTitle icon={<CrownIcon width="36" height="32" />}>GOV.UK</IconTitle>anyCompany component e.g. GOV UK
defaultOpenundefinedbooleanIs the mobile navigation open by default?
searchundefinedanySearch component
serviceTitleundefinedanyService title component e.g. Food Standards Authority

FAQs

Last updated on 01 Oct 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc