Module exposing: ExtendedNav
// Source: https://github.com/trussworks/react-uswds | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import React, { type JSX } from 'react'
import classnames from 'classnames'
import { NavCloseButton } from '../NavCloseButton/NavCloseButton'
import { NavList } from '../NavList/NavList'
export type ExtendedNavProps = {
primaryItems: React.ReactNode[]
secondaryItems: React.ReactNode[]
onToggleMobileNav?: (
event: React.MouseEvent<HTMLButtonElement, MouseEvent>
) => void
mobileExpanded?: boolean
} & JSX.IntrinsicElements['nav']
export const ExtendedNav = ({
primaryItems,
secondaryItems,
mobileExpanded = false,
children,
className,
onToggleMobileNav,
..
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key