<Admonition>
The <Admonition> block renders a callout box for a note, info, warning, or danger message.
Basic usage
Section titled “Basic usage”<Admonition type="info" title="Important Note" description="Make sure you have AWS credentials configured before proceeding."/>Required props
Section titled “Required props”type(string):"note","info","warning", or"danger"
Optional props
Section titled “Optional props”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, andconfirmationTextresolve{{ .inputs.VarName }}expressions against those inputs, so a callout can name the value the user entered.closable(boolean): whether users can close the admonition. Defaultfalse.confirmationText(string): if set, shows a confirmation button with this label that users must click to dismiss the admonition.allowPermanentHide(boolean): withconfirmationText, adds a “Don’t show me this again” checkbox.storageKey(string): unique key for localStorage. Required withallowPermanentHide.
Note (gray)
Section titled “Note (gray)”<Admonition type="note" title="Note" description="This is a general note for additional context."/>Info (blue)
Section titled “Info (blue)”<Admonition type="info" title="Helpful Tip" description="You can use environment variables instead of hardcoding values."/>Warning (yellow)
Section titled “Warning (yellow)”<Admonition type="warning" title="Caution" description="This operation cannot be undone. Make sure you have backups."/>Danger (red)
Section titled “Danger (red)”<Admonition type="danger" title="Danger" description="This will delete all data in your production database!"/>Markdown content
Section titled “Markdown content”You can pass the content as children in place of the description prop. Children support full markdown, such as lists, code blocks, and links:
<Admonition type="info" title="Prerequisites">Before proceeding, you need:
- AWS CLI installed- OpenTofu v1.6+- Valid AWS credentials configured
Check your credentials with:
```bashaws sts get-caller-identity```</Admonition>Put the content on lines of its own, between the opening and closing tags. Content that starts on the same line as the opening tag must end on that line too, and is read as inline markdown:
<Admonition type="warning">**Do not** run this in production without testing first.</Admonition>Closable admonitions
Section titled “Closable admonitions”<Admonition type="info" title="Did you know?" description="You can skip optional checks using the Skip checkbox." closable={true}/>Confirmation button
Section titled “Confirmation button”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"/>Don’t show again
Section titled “Don’t show again”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"/>