标注
2 分
Callout 区块使用彩色容器突出显示重要信息。它们适用于显示提示、确认、警告和关键通知。
语法
您可以使用 Markdown 或 MDX 添加此组件。
<hint type="info">
Your content here.
</hint>Callout 支持以下类型:
- 信息
- 成功
- 警告
- 危险
MDX 示例
以下示例创建了四种不同的 callout 类型。
<hint type="info">
Use **info** callouts for helpful tips and additional context.
</hint>
<hint type="success">
Use **success** callouts for positive outcomes or confirmations.
</hint>
<hint type="warning">
Use **warning** callouts for things users should be careful about.
</hint>
<hint type="danger">
Use **danger** callouts for critical warnings or destructive actions.
</hint>Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.