diff --git a/src/components/Toc/Toc.tsx b/src/components/Toc/Toc.tsx index a29575dbe1..30e9b65dab 100644 --- a/src/components/Toc/Toc.tsx +++ b/src/components/Toc/Toc.tsx @@ -15,10 +15,11 @@ export interface TocProps extends QAProps { items: TocItemType[]; value?: string; onUpdate?: (value: string) => void; + onItemClick?: (event: React.MouseEvent) => void; } export const Toc = React.forwardRef(function Toc(props, ref) { - const {value: activeValue, items, className, onUpdate, qa} = props; + const {value: activeValue, items, className, onUpdate, onItemClick, qa} = props; return (