# Top Navigation URL: /components/top-navigation Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/top-navigation.mdx A navigation component positioned at the top of the screen that provides a navigation interface. ## Anatomy ![Top Navigation Anatomy]() ![Top Navigation Anatomy]() Top Navigation is divided into two types: Root and Standard. Each type is provided as a separate implementation and Figma component. ## Properties ### Title Type ![Title area]() ![Title area]() For Root Top Navigation's Title area, you can choose either the Text type, which shows only a Label, or the Button type, which has an action on selection. For Standard Top Navigation, the Title area is composed as a Slot, allowing a somewhat wider variety of combinations. ### Left Slot ![Top Navigation Left Slot]() The Standard type Top Navigation is used on screens at depth 2 or deeper, and navigation actions can be placed on the left. Back and Close buttons can be placed there, and the two buttons provide different behavior. It's important to understand the difference between each button and use them for their exact purpose. If an additional action is needed on the left, a hidden Icon Button can be used. It's recommended to use this only in limited, truly necessary situations. This option is available only in Figma. ### Right Slot ![Top Navigation Right Slot]() ![Top Navigation Right Slot]() The right side of Top Navigation is composed as a Slot where an Icon Button or Text Button can be placed. Up to 3 Icon Buttons can be added; it's recommended to adjust the count so it doesn't overlap the title area. ### Notification Badge ![Top Navigation Notification Badge]() ![Top Navigation Notification Badge]() A [Notification Badge](/components/notification-badge) can be shown on an Icon Button. Both Small and Large sizes can be used; use the Large size when numeric information is needed. ## Guidelines ### Difference between Root Top Navigation and Standard Top Navigation ![Comparison of Root Top Navigation and Standard Top Navigation]() Top Navigation is divided into two types: Root and Standard. Each type is provided as a separate implementation and Figma component. #### Root Top Navigation Used on the app's top-level root tabs, providing entry points to core actions. #### Standard Top Navigation Used on screens at depth 2 or deeper. It guides the user through the current location and key interactions via Back or Close, a title, and secondary actions. ### Back and Close behavior Back and Close look similar but provide different behavior. Because they have a big impact on the user's flow, it's important to understand and use each behavior precisely. | Category | Back | Close | | --------------------- | ----------------------------------- | ------------------------------------------- | | **Navigation method** | Moves to the previous screen | Ends the current layer/flow | | **Where it's used** | General pages, hierarchical screens | Modals, independent flows | | **UX meaning** | Go back one step | End the flow and exit | | **Icon** | \< (Chevron Left) | X (Close) | | **Expected behavior** | Previous step is preserved | Current state/input values may be discarded | #### Back ![Back behavior example: clicking the Back Button on a Depth 2 post detail screen → moves to the previous feed or recommendation area]() Returns the current screen to the previous screen based on the navigation stack. It's divided into History Back and Hierarchy Back, and you choose between them depending on the screen's purpose and entry path. - When step-by-step navigation is needed in a hierarchical screen structure - When the user's input needs to be preserved #### Close ![Close behavior example: clicking the Close Button on a compose screen → moves to the original entry point]() Ends the current screen and returns to the upper layer. Rather than going back through page history, this closes an open modal, [Bottom Sheet](/components/bottom-sheet), full screen, etc. - When closing a layer such as a modal, full-screen modal, or [Bottom Sheet](/components/bottom-sheet) - When resetting state, ending a flow, or aborting a task ### The two kinds of Back behavior: History Back vs. Hierarchy Back The Back button is generally thought of as "the action of returning to the previous screen," but it's actually split into History Back and Hierarchy Back. It's important to apply a consistent policy so users don't experience unexpected navigation. | Category | History Back | Hierarchy Back | | --------------------- | ------------------------------------------- | ---------------------------------------- | | **Basis** | The user's actual navigation path | The app's information architecture (IA) | | **Navigation result** | Moves to the immediately previous screen | Moves to a higher-level screen | | **External entry** | May exit back out externally | Fixed to a higher screen within the app | | **Typical cases** | Search, recommendation, feed-based browsing | Settings, profile, fixed-structure menus | #### History Back ![History Back example: clicking the Back Button on a post detail screen → moves to the previous post detail recommendation list]() A back method that returns through the pages in the order the user actually visited them. It operates based on visit history. - When there's a continuous browsing flow, such as search or recommendation feeds - When the user entered a detail screen directly via a deep link from outside; pressing Back may return to the external browser #### Hierarchy Back ![Hierarchy Back example: clicking the Back Button on a notification settings screen → moves to the parent settings screen]() A back method that moves to a higher-level screen according to the app's information architecture (IA). It operates based on the app structure. - When navigation must follow a fixed structure, such as a settings screen - When the user entered a detail screen directly via a deep link from outside; this can be defined to move to a parent screen instead ### Writing the title ![Example using 2 and 3 Icon Buttons on the Root type Top Navigation]() ![Root type Top Navigation]() ![Example using 2 and 3 Icon Buttons on the Standard type Top Navigation (iOS)]() ![Example using 2 and 3 Icon Buttons on the Standard type Top Navigation (Android)]() ![Example of title truncation occurring on the Standard type Top Navigation]() Write the title concisely so it displays on a single line. The title length is automatically adjusted based on the number of actions, and it's truncated with an ellipsis if it gets too long. In global apps, a gradient is shown instead of an ellipsis. **Title truncation is not handled in Figma. Please verify it in the implementation.** ### Using the right action area ![Example using an Icon Button and a Text Button in the right action area]() The right side of Top Navigation can show secondary actions accessible from the screen. It's recommended to show up to 2 icon buttons. Up to 3 can be shown if needed, but be careful, since the title text may not display fully. Only 1 text button can be shown. When there are more than 3 actions, it's recommended to combine a More button with a [Menu Sheet](/components/menu-sheet) so only the important actions are exposed and the rest are hidden. ### Behavior on scroll ![Example of Top Navigation staying fixed on scroll (default scroll behavior)]() By default, Top Navigation stays fixed to the top when scrolling. No separate visual device is shown to distinguish the fixed area from the scrolling area. ![Scroll behavior]() When using a Top Navigation with a transparent background, the background color fills in as the user scrolls. ## Specification Component spec (JSON): /rootage/components/top-navigation.json