使用 <Example> 组件为某些内容添加外边框。当您想要演示或展示某些内容,又不想让其与周围文本混淆时,这非常有用。
import { Example } from "~/components"
<Example>
Hello, world!
</Example>
{/*
`title` 是一个可选的字符串,用于自定义您的示例卡片标题
*/}
<Example title="Hello world">
Hello, world!
</Example>The Example component is used 204 times on 115 pages.
See all examples of pages that use Example
Used 204 times.
Pages
Partials
使用 <Example> 组件为某些内容添加外边框。当您想要演示或展示某些内容,又不想让其与周围文本混淆时,这非常有用。
import { Example } from "~/components"
<Example>
Hello, world!
</Example>
{/*
`title` 是一个可选的字符串,用于自定义您的示例卡片标题
*/}
<Example title="Hello world">
Hello, world!
</Example>这篇文档对您有帮助吗?