Skip to content

useActiveSection

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/ui-react/src/hooks/useActiveSection.ts

Signature

ts
function useActiveSection(headingIds: string[]): {
  activeId: string | null;
  setActiveId: (id: string | null) => void;
}

Parameters

NameType
headingIdsstring[]

Returns: { activeId: string | null; setActiveId: (id: string | null) => void; }

Was this page helpful?

Download as PDF