跳到主要内容

公告栏

公告栏是由一组三个冒号(:::)组成的

示例

:::note

Some **content** with _markdown_ `syntax`. Check [this `api`](#).

:::

:::tip

Some **content** with _markdown_ `syntax`. Check [this `api`](#).

:::

:::info

Some **content** with _markdown_ `syntax`. Check [this `api`](#).

:::

:::caution

Some **content** with _markdown_ `syntax`. Check [this `api`](#).

:::

:::danger

Some **content** with _markdown_ `syntax`. Check [this `api`](#).

:::
备注

Some content with markdown syntax. Check this api.

提示

Some content with markdown syntax. Check this api.

信息

Some content with markdown syntax. Check this api.

警告

Some content with markdown syntax. Check this api.

危险

Some content with markdown syntax. Check this api.

指定标题

note , tip , info , caution , danger 的后面可以直接填上标题

:::note Title

示例

:::
Title

示例

搭配MDX使用

import Tabs from '@theme/Tabs';

import TabItem from '@theme/TabItem';

:::tip Use tabs in admonitions

<Tabs>
<TabItem value="apple" label="Apple">This is an apple 🍎</TabItem>
<TabItem value="orange" label="Orange">This is an orange 🍊</TabItem>
<TabItem value="banana" label="Banana">This is a banana 🍌</TabItem>
</Tabs>

:::
Use tabs in admonitions
This is an apple 🍎