Home / Function/ useMobileSidebar() — supabase Function Reference

useMobileSidebar() — supabase Function Reference

Architecture documentation for the useMobileSidebar() function in use-mobile-sidebar.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  56350b50_3ba0_3127_269f_6c6b1e7d60f5["useMobileSidebar()"]
  e4de4c3a_b5c8_c80b_2148_9fcee2530917["MobileSidebarSheet()"]
  e4de4c3a_b5c8_c80b_2148_9fcee2530917 -->|calls| 56350b50_3ba0_3127_269f_6c6b1e7d60f5
  1f7a5344_07a7_f585_7541_26f627b743d6["NavigationItem()"]
  1f7a5344_07a7_f585_7541_26f627b743d6 -->|calls| 56350b50_3ba0_3127_269f_6c6b1e7d60f5
  fb35871b_16c5_9c37_2c4c_99fc44ff608f["TopNavigation()"]
  fb35871b_16c5_9c37_2c4c_99fc44ff608f -->|calls| 56350b50_3ba0_3127_269f_6c6b1e7d60f5
  style 56350b50_3ba0_3127_269f_6c6b1e7d60f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/design-system/hooks/use-mobile-sidebar.ts lines 13–24

export function useMobileSidebar(): MobileSidebarContextType {
  const context = useContext(MobileSidebarContext)

  if (context === null) {
    throw new Error(
      'useMobileSidebar must be used within a MobileSidebarProvider. ' +
        'Ensure your component is wrapped with MobileSidebarProvider.'
    )
  }

  return context
}

Domain

Subdomains

Frequently Asked Questions

What does useMobileSidebar() do?
useMobileSidebar() is a function in the supabase codebase.
What calls useMobileSidebar()?
useMobileSidebar() is called by 3 function(s): MobileSidebarSheet, NavigationItem, TopNavigation.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free