Skip to Content
🎉 Nextra 4.0 已发布。dimaMachina 正在 寻找新工作或咨询机会 

NotFoundPage 组件

配置在未找到页面上报告断开链接的选项。

Props

NameTypeDefault
contentReactNode

Content of the link.

'Submit an issue about broken link'
labelsstring

Labels that can be added to the newly created issue.

'bug'
childrenReactNode

Top content of the page.

<H1>404: Page Not Found</H1>
classNamestring

CSS class name.

示例

app/not-found.jsx
import { NotFoundPage } from 'nextra-theme-docs' export default function NotFound() { return ( <NotFoundPage content="提交问题" labels="broken-link"> <h1>页面未找到</h1> </NotFoundPage> ) }
Last updated on