TopNav is the primary, header level navigation for a web site or application. It
contains the root level pages, user logins, and the site title. The main
navigation should be hidden on screen sizes smaller than the size of the
navigation.
<TopNavTitlehref="#">ArcGIS for Developers</TopNavTitle>
4
<TopNavList>
5
<TopNavLinkhref="#"active>
6
Plans
7
</TopNavLink>
8
<TopNavLinkhref="#">Community</TopNavLink>
9
<TopNavLinkhref="#">Docs</TopNavLink>
10
</TopNavList>
11
<TopNavActionsList>
12
<TopNavLinkhref="#">Sign In</TopNavLink>
13
<Buttonclear>Sign Up</Button>
14
</TopNavActionsList>
15
</TopNav>
With React Router
Using React Router with
Calcite React components is straight-forward. Pass the router component class to the as
prop on whatever component needs the functionality provided by router. Props assigned to
the Calcite component will be inherited by the underlying router component.
xxxxxxxxxx
1
import { NavLink } from'react-router-dom'
2
...
3
<TopNav>
4
<TopNavBrandhref="#"src={EsriLogo} />
5
<TopNavTitlehref="#">ArcGIS for Developers</TopNavTitle>