NotFoundPage 组件
配置在未找到页面上报告断开链接的选项。
Props
| Name | Type | Default |
|---|---|---|
content | ReactNodeContent of the link. | 'Submit an issue about broken link' |
labels | stringLabels that can be added to the newly created issue. | 'bug' |
children | ReactNodeTop content of the page. | <H1>404: Page Not Found</H1> |
className | stringCSS 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