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
title
: title about current pagefrontMatter
: parsed front matter datafilePath
: the current Markdown/MDX file pathhideSidebar
: is sidebar hiddennormalizePagesResult
:ReturnType<typeof normalizePages>
Last updated on