MCPcopy Create free account
hub / github.com/IABTechLab/uid2docs / DocSidebarItemHtml

Function DocSidebarItemHtml

src/theme/DocSidebarItem/Html/index.tsx:8–26  ·  view source on GitHub ↗
({
  item,
  level,
  index,
}: Props)

Source from the content-addressed store, hash-verified

6import styles from "./styles.module.css";
7
8export default function DocSidebarItemHtml({
9 item,
10 level,
11 index,
12}: Props): JSX.Element {
13 const { value, defaultStyle, className } = item;
14 return (
15 <li
16 className={clsx(
17 ThemeClassNames.docs.docSidebarItemLink,
18 ThemeClassNames.docs.docSidebarItemLinkLevel(level),
19 defaultStyle && [styles.menuHtmlItem, "menu__list-item"],
20 className,
21 )}
22 key={index}
23 dangerouslySetInnerHTML={{ __html: value }}
24 />
25 );
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected