Skip to content

PortalTableOfContents

reference
1 min readUpdated

Kind: Component

Source: atloria-monorepo/apps/web/src/app/p/[slugId]/[audienceSlug]/[documentSlug]/DocumentPageClient.tsx

Portal-Compatible ToC Component Uses same hooks as TableOfContents but adapted for portal rendering

Props

NameTypeRequiredDefault
entriesTocEntry[]-
titlestring-

Diagram

mermaid
graph TD
    component_PortalTableOfContents_3a1c8ff8["PortalTableOfContents"]
    class component_PortalTableOfContents_3a1c8ff8 rootComponent

Relationships

  • RENDERS → ChevronDown
  • RENDERS → ChevronRight
  • USES_HOOK → useLanguageContext
  • USES_HOOK → useMemo
  • USES_HOOK → useState
  • USES_HOOK → useEffect
  • USES_HOOK → useActiveSection
  • USES_HOOK → useCallback

Referenced By

  • PublicDocumentPage (RENDERS)

Was this page helpful?

Download as PDF