Side Panel
Design System - Side Panel component
The Side Panel component serves as a supplementary container to present contextual or detailed information without navigating away from the current screen. It follows the principles of progressive disclosure and allows for efficient multitasking.

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

Variants

Default/Static
Displays structured content in a fixed panel with optional action buttons and a header. Commonly used for static information display and secondary actions.

Collapsible/Dynamic Features include expandable/collapsible sections with a toggle arrow. Useful for longer content or when managing dense interfaces while maintaining a clean layout.
Properties
Sections Supports multiple vertical sections for chunking information logically; each section can include headers, content, and actions.

Action Buttons Supports primary or secondary buttons at the bottom of each section or the entire panel to initiate actions like Submit, Save, or Next.

Header Contains a title and optional subheading. Can include a close (X) icon for dismissing the panel.

Arrow alignment - Left/Right The collapse/expand arrow can be positioned on either side of the panel based on the UI layout and reading direction.

Collapse by arrow The panel can be dynamically collapsed into a thin strip, showing only the header or icon, and expanded with a click on the arrow.

Close Button
Optional close (X) button at the top-right for dismissing or hiding the panel when needed

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.
className
text
-
styles
text
-
type
yes/no
no
position
yes/no
no
children
yes/no
-
header
yes/no
-
footer
yes/no
no
addClose
yes/no
no
closedContents
yes/no
no
closedSections
yes/no
no
closedHeader
yes/no
no
closedFooter
yes/no
no
transitionDuration
yes/no
no
bgActive
yes/no
no
isOverlay
yes/no
no
isDraggable
yes/no
no
sections
yes/no
no
hideArrow
yes/no
no
hideScrollIcon
yes/no
no
defaultOpenWidth
yes/no
no
defaultClosedWidth
yes/no
no
Usage Guide

Action accessibility
Use the collapsible variant for panels that need to show or hide sections based on user interaction. Don't keep long sections always expanded; it can overwhelm the user visually.

Change log
Design Checklist
All interactive states
Accessible use of colours
Accessible contrast for text
Accessible contrast for UI components
Keyboard interactions
Last updated
Was this helpful?