ant-design/docs/pattern/navigation.en-US.md

4.2 KiB

order title
1 Navigation

Broadly speaking, anything telling users where they are, where to go and how to get there can be called navigation. We abstract common navigation patterns and provide handy components to help designers and developers to build a clear and smooth navigational system. When using navigation or customizing navigational structures, please pay attention to following common pitfalls:

  • Provide visual and contextual cues as many as possible, to prevent users from getting lost
  • Maintain consistency between form and behavior, or reduce the number of items in navigation, to decrease user's learning cost
  • Minimize page transitions (i.e. reduce the number of page tranistions required by a task from several to just once or twice), to ensure that user travels only a short distance from any page to another

Commonly Used Navigation Patterns

Side Navigation Top Navigation
Pros Hierarchy is easily extensible; Make room for page content horizontally; Allow fixed position, so that user can navigate to intended page quickly. Conform to common human habit of browsing top-down, easy to browse and click; Content area usually stay in a fixed width (i.e. 1208px), so page layout is stabler and less sensitive to screen sizes.
Cons Sensitive to screen sizes because content area usually resides in a Grid. At present, most monitors are widescreen, so top navigation occupies a large area of valuable vertical space while waste a lot of horizontal space; Number and title length of menu items are limited.
Summary Suitable for multi-level, operation intensive and dashboard-like web apps. Suitable for landing pages and consumer facing web apps.

We categorize common navigation patterns into side and top navigations. Either has its own pros and cons, and should be chosen accordingly.

Examples for reference Commonly Used Layout

Side Navigation


Structure Example

Navigational structure consists of following parts:

  1. Product Logo and Name
  2. Menu Items
  3. Login
  4. Breadcrumb (optional)

About Breadcrumb

  1. Avoid using breadcrumb as much as you can, especially when page contains other navigation components sufficiently telling where users are.
  2. Breadcrumb can be categorized as:
    • Path-Centric: dynamically showing a path of how user reaches current page
    • Position-Centric: usually fixed, showing position of current page among entire site structure
    • Property-Centric: showing categorical property of current page

1st Level Menu Items 2nd Level Menu Items 3rd or Higher Level Menu Items

Here we provide navigation patterns for different kinds of menu hierarchy.

Top Navigation


Structure Example

Navigational structure consists of following parts:

  1. Product Logo and Name
  2. Menu Items
  3. Login
  4. Breadcrumb (optional)

1st Level Menu Items 2nd Level Menu Items 3rd or Higher Level Menu Items

Multi-level Menu Items.