@govuk-react-bjss-pttg/top-nav
TypeScript icon, indicating that this package has built-in type declarations

0.10.7 • Public • Published

TopNav

Import

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

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

Properties

Prop Required Default Type Description
bgColor undefined string Top nav background color
children undefined any List Navigation items with anchor tags e.g. NavAnchor components
color undefined string Top nav text color
company <IconTitle icon={<CrownIcon width="36" height="32" />}>GOV.UK</IconTitle> React.ReactNode Company component e.g. GOV UK
defaultOpen undefined boolean Is the mobile navigation open by default?
search undefined React.ReactNode Search component
serviceTitle undefined React.ReactNode Service title component e.g. Food Standards Authority

Readme

Keywords

none

Package Sidebar

Install

npm i @govuk-react-bjss-pttg/top-nav

Weekly Downloads

0

Version

0.10.7

License

MIT

Unpacked Size

59.5 kB

Total Files

24

Last publish

Collaborators

  • bjss-thomasbickley-2
  • bjss-thomasbickley