styledsea

Root Toggle

Switch between page trees

Usages

Add this component to your sidebar or other places you want.

import { DocsLayout } from 'styledsea-docs-interface/layouts/docs';
import { RootToggle } from 'styledsea-docs-interface/components/layout/root-toggle';
 
<DocsLayout
  sidebar={{
    banner: (
      <RootToggle
        options={[
          {
            title: 'Folder 1',
            description: 'Pages in folder 1',
            url: '/path/to/page-tree-1',
          },
          {
            title: 'Folder 2',
            description: 'Pages in folder 2',
            url: '/path/to/page-tree-2',
          },
        ]}
      />
    ),
  }}
/>;

Last updated on

On this page

Edit on GitHub