Skip to content
Author with AI

<Admonition>

The <Admonition> block renders a callout box for a note, tip, warning, or danger message.

<Admonition
type="info"
title="Important Note"
description="Make sure you have AWS credentials configured before proceeding."
/>
  • type (string): "note", "info", "warning", or "danger"
  • title (string): title for the callout box. Defaults based on type. Supports inline markdown (bold, italic, links, code).
  • description (string): the message to display. Supports inline markdown.
  • inputsId (string | string[]): ID of one or more Inputs blocks. title, description, and confirmationText resolve {{ .inputs.VarName }} expressions against those inputs, so a callout can name the value the user entered.
  • closable (boolean): whether users can close the admonition. Default false.
  • confirmationText (string): if set, shows a confirmation button with this label that users must click to dismiss the admonition.
  • allowPermanentHide (boolean): with confirmationText, adds a “Don’t show me this again” checkbox.
  • storageKey (string): unique key for localStorage. Required with allowPermanentHide.
<Admonition
type="note"
title="Note"
description="This is a general note for additional context."
/>
<Admonition
type="info"
title="Helpful Tip"
description="You can use environment variables instead of hardcoding values."
/>
<Admonition
type="warning"
title="Caution"
description="This operation cannot be undone. Make sure you have backups."
/>
<Admonition
type="danger"
title="Danger"
description="This will delete all data in your production database!"
/>

You can pass the content as children in place of the description prop:

<Admonition type="info" title="Prerequisites">
Before proceeding, you need:
- AWS CLI installed
- OpenTofu v1.6+
- Valid AWS credentials configured
</Admonition>

The content supports inline markdown:

<Admonition type="warning" title="Important">
Review the [deployment guide](https://example.com/guide) before running these commands. **Do not** run this in production without testing first.
</Admonition>
<Admonition
type="info"
title="Did you know?"
description="You can skip optional checks using the Skip checkbox."
closable={true}
/>

Require users to acknowledge before dismissing:

<Admonition
type="danger"
title="Destructive Operation"
description="This will permanently delete all resources."
confirmationText="I understand this cannot be undone"
/>

Let users hide the admonition permanently:

<Admonition
type="info"
title="Welcome!"
description="This is your first time running this runbook."
confirmationText="I've read the introduction"
allowPermanentHide={true}
storageKey="welcome-message"
/>