![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@govuk-react/top-nav
Advanced tools
Styled top navigation header with numerous constituent parts input as props.
import TopNav from '@govuk-react/top-nav';
TopNav with logo, service title and navigation items
import { SearchBox, TopNav } from 'govuk-react';
import CrownIcon from '@govuk-react/icon-crown';
const link = 'https://example.com?=1';
const Company = (
<TopNav.Anchor href={link} target="new">
<TopNav.IconTitle icon={<CrownIcon width="36" height="32" />}>GOV.UK</TopNav.IconTitle>
</TopNav.Anchor>
);
const ServiceTitle = (
<TopNav.NavLink href={link} target="new">
Service Title
</TopNav.NavLink>
);
const Search = (
<SearchBox>
<SearchBox.Input placeholder="Search GOV.UK" />
<SearchBox.Button />
</SearchBox>
);
<TopNav company={Company} serviceTitle={ServiceTitle} search={Search} active={0}>
<TopNav.NavLink href="https://example.com?q=catdog" target="new">Navigation item #1</TopNav.NavLink>
<TopNav.NavLink href="https://example.com?q=dogcat" target="new">Navigation item #2</TopNav.NavLink>
</TopNav>
With React Router
import { BrowserRouter, Link } from 'react-router-dom';
import { TopNav } from 'govuk-react';
import CrownIcon from '@govuk-react/icon-crown';
const reactRouterLink = '/section';
const CompanyLink = (
<TopNav.Anchor as={Link} to={reactRouterLink}>
<TopNav.IconTitle icon={<CrownIcon width="36" height="32" />}>GOV.UK</TopNav.IconTitle>
</TopNav.Anchor>
);
const ServiceTitleLink = (
<TopNav.NavLink as={Link} to={reactRouterLink}>
Service Title
</TopNav.NavLink>
);
<BrowserRouter>
<TopNav company={CompanyLink} serviceTitle={ServiceTitleLink} />
</BrowserRouter>
active
navigation itemsProp | Required | Default | Type | Description |
---|---|---|---|---|
bgColor | BLACK | string | Top nav background color | |
children | undefined | node | List Navigation items with anchor tags e.g. NavAnchor components | |
color | WHITE | string | Top nav text color | |
company | <IconTitle icon={<CrownIcon width="36" height="32" />}>GOV.UK</IconTitle> | node | Company component e.g. GOV UK | |
defaultOpen | false | bool | Is the mobile navigation open by default? | |
search | false | node | Search component | |
serviceTitle | undefined | node | Service title component e.g. Food Standards Authority |
FAQs
Styled top navigation header with numerous constituent parts input as props.
The npm package @govuk-react/top-nav receives a total of 3,960 weekly downloads. As such, @govuk-react/top-nav popularity was classified as popular.
We found that @govuk-react/top-nav demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.