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.

Property
Value
Default

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


Date
Number
Notes

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?