MCPcopy Create free account
hub / github.com/adobe/react-spectrum / ToC

Function ToC

packages/dev/docs/src/ToC.js:20–36  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

18import typographyStyles from '@adobe/spectrum-css-temp/components/typography/vars.css';
19
20export function ToC(props) {
21 let {toc} = props;
22
23 return (
24 <nav className={styles['toc']} id="toc" aria-labelledby="toc-heading">
25 <div className={styles['tocContainer']}>
26 <h3
27 aria-label="Table of contents"
28 id="toc-heading"
29 className={typographyStyles['spectrum-Heading4']}>
30 Contents
31 </h3>
32 <SideNav node={toc} />
33 </div>
34 </nav>
35 );
36}
37
38function SideNav(props) {
39 let {node} = props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected