View Switcher Widget
Component Detail
User Interface
low complexity
mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Segmented control (tab bar) widget that allows coordinators to toggle between the contacts list and the peer mentor roster within the same navigation context, without triggering a full-screen navigation. Manages the active data source and passes the selection to the parent list screen. Designed for low cognitive load with clear labels and accessible focus indicators.
view-switcher-widget
Responsibilities
- Render segmented toggle between Contacts and Peer Mentors views
- Notify parent screen of active view selection
- Maintain selected state across scroll and refresh
- Meet WCAG 2.2 AA touch target and contrast requirements
Interfaces
build(initialView: ViewMode)
onViewChanged(callback: Function)
setActiveView(view: ViewMode)
getActiveView()