# Side Navigation URL: /components/side-navigation Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/side-navigation.mdx A component that helps users navigate between top-level menus and explore the entire structure of the app. ## Anatomy ![Side Navigation Anatomy image]() Side Navigation is composed of Header, Trigger, Content, and Footer. - **Header**: Contains service name, profile information, and account switching. - **Trigger**: An interaction element that allows collapsing or expanding the sidebar. - **Content**: A scrollable area containing navigation groups and menu items. - **Group**: A unit that logically groups related menu items. (Can include labels) - **Menu Item**: A first-level navigation element containing icon, label, and Chevron for expansion. - **Menu Sub Item**: A second-level detailed menu located below a first-level menu. - **Footer**: Contains auxiliary links or external connection actions such as "Guide" and "Support Center". ## Guidelines ### Menu Item ![Side Navigation Menu Item - single menu and menu with hierarchy]() The basic unit where users interact directly to navigate pages or control submenus. #### When there are submenus (Collapsible Menu) - **Behavior principle**: When clicking the main item (parent), it does not navigate to that page but only performs accordion action of collapsing and expanding the sublist. - **State indication**: The Chevron icon on the right rotates to intuitively convey to the user the current expanded/collapsed state. - **Auto-expand**: If any of the subitems is in the Active state, the parent menu should automatically remain in the expanded state without requiring additional user interaction. #### When there are no subitems (Standalone Menu) - **Behavior principle**: Behaves as a standalone menu that immediately navigates to the corresponding page when clicked. - **Layout**: Since there are no subitems, the Chevron icon on the right is not displayed, and external link icons or [Badge](/components/badge) can be placed in the Suffix area as needed. ### Collapsed State ![Side Navigation Collapsed State example]() A collapse feature can be configured for space efficiency. When collapsed, it is minimized to show only icons, preserving layout space. Pressing the trigger again expands it. When hierarchical menus are collapsed, all submenus (Sub Items) are visually hidden to save space. When the sidebar is collapsed, only icons are exposed, so auxiliary UI is provided on hover as follows: - **Menu with subitems**: When hovering over the icon, the hidden submenu list appears in Popover form. Users can immediately navigate to the desired subpage within the popover without expanding the sidebar again. - **Menu without subitems**: When hovering over the standalone menu icon, a [Help Bubble](/components/help-bubble) containing the menu name appears to complement the icon's meaning. ### Writing Menu Item Label ![Side Navigation Menu Item Label writing guideline]() Write menu names as concisely and clearly as possible so users can immediately understand the functionality. (Example: Write "Product Management" instead of "Product Information Management") If the label becomes too long and exceeds the allocated width, apply automatic word-wrap instead of truncation (...) so the full name is displayed. ### Scroll Behavior ![Side Navigation Scroll Behavior example]() A consistent scroll policy is maintained to handle cases where internal content exceeds screen height. - **Fixed Header & Footer**: Service title (Header) and key guide links (Footer) should remain fixed at the top/bottom of the screen even during scrolling. - **Independent Content Scroll**: When there are many menus, only the middle Content area scrolls independently. - A Divider is displayed below the Header when scrolling occurs to indicate that content is being covered. - When scrolling occurs, [Scroll Fog](/components/scroll-fog) is displayed at the bottom of the Content area. Reserve bottom margin equal to the Scroll Fog height so it displays naturally when scrolled to the end. ### Background Variant ![Side Navigation Background Variant - Neutral and Transparent]() The visual boundary of the sidebar can be set through background color options. - **Neutral**: Uses gray color to create visual plane separation from the main content area. Recommended when there is much information or the sidebar has high hierarchy. - **Transparent**: Shares the service's default background color without separate background color. Used when aiming for a minimal layout. ### Responsive Design ![Side Navigation Responsive Design - transition by breakpoint]() To provide optimal navigation experience across various device environments, the sidebar form automatically transitions based on breakpoint. - **lg**: Expanded state is default, and users can manually collapse or expand based on their preference. - **md**: Automatically transitions to Collapsed for space efficiency. In this state, only icons are exposed, widely preserving the main content area. - **sm**: The sidebar is hidden from the screen and transitions to Drawer method where it can be expanded through the menu button in the top navigation.