Skip to Content
🚧 This is WIP documentation for Nextra 4.0

API

useThemeConfig hook

The useThemeConfig hook returns values of your theme configuration and is made to dynamically configure your project.

import { useThemeConfig } from 'nextra-theme-docs'

useConfig hook

import { useConfig } from 'nextra-theme-docs'

The useConfig hook returns data from your current page context.

Return Values

  • hideSidebar: is sidebar hidden
  • normalizePagesResult: ReturnType<typeof normalizePages>
  • normalizePagesResult.activeMetadata: parsed front matter or exported Metadata from page
Last updated on