Hamburger
Design System - Hamburger component
The Hamburger component serves as a collapsible vertical navigation panel, enabling users to switch between modules, configure language and city preferences, and access universal actions. This component provides a consistent and intuitive experience across services.

// Sample code
<CheckBox
label="Label"
onChange={(e)=>{console.log(e.target.checked}}
/>
Anatomy

Variants

Light Mode
The default Text Block displays a structured combination of a caption, heading, subheading, and description. Each section can be individually toggled on or off based on the context or content requirement.

Dark Mode Intended for darker UIs, this version enhances visual contrast and reduces strain during prolonged usage or low-light environments.
Properties
Profile Displays user-specific details such as name and mobile number, along with an optional avatar or icon, reinforcing personalisation.

Enable Search Allows users to search through nested navigation items, improving usability for platforms with many modules or submodules.

Property Configuration Table
Each design component offers a range of configurable options. These options are intentionally platform-agnostic, allowing implementations to adapt and tailor them to align with the specific requirements of the chosen framework.
items
text
-
profileName
text
-
profileNumber
yes/no
no
theme
yes/no
no
className
yes/no
-
styles
yes/no
-
hideUserManuals
yes/no
no
useManualLabel
yes/no
no
profile
yes/no
no
usermanuals
number
no
onSelect
yes/no
no
onLogout
yes/no
no
reopenOnLogout
yes/no
no
closeOnClickOutside
yes/no
no
onOutsideClick
yes/no
no
onLabelClick
yes/no
no
Usage Guide

Action Accessibility
Keep important global actions like "Logout" and "User Manual" fixed and accessible at the bottom. Don’t hide logout or profile info under collapsible menus; users expect to see these instantly upon opening the drawer.

Change log
Dec 15, 2024
v-0.0.2
This component is added to the website. This component is now individually versioned.
Design Checklist
All interactive states - Includes all interactive states that are applicable (hover, down, focus, keyboard focus, disabled).
Accessible use of colours - Colour is not used as the only visual means of conveying information (WCAG 2.1 1.4.1)
Accessible contrast for text - Text has a contrast ratio of at least 4.5:1 for small text and at least 3:1 for large text (WCAG 2.0 1.4.3).
Accessible contrast for UI components - Visual information required to identify components and states (except inactive components) has a contrast ratio of at least 3:1 (WCAG 2.1 1.4.11).
Keyboard interactions - Includes all interactive states that are applicable (hover, down, focus, keyboard focus, disabled).
Screen reader accessible - All content, including headings, labels, and descriptions, is meaningful, concise, contextual and accessible by screen readers.
Responsive for all breakpoints - Responsiveness for 3 breakpoints - Mobile, Tablet and Desktop
Usage guidelines - Includes a list of dos and don'ts that highlight best practices and common mistakes.
Content guidelines - Content standards and usage guidelines for writing and formatting in-product content for the component.
Defined variants and properties - Includes relevant variants and properties (style, size, orientation, optional iconography, decorative elements, selection states, error states, etc.)
Defined behaviours - Guidelines for keyboard navigation and focus, layout management (including wrapping, truncation, and overflow), animations, and user interactions.
Design Kit - Access to the design file for the component in Figma, multiple options, states, colour themes, and platform scales.
Last updated
Was this helpful?