<Admonition>
The <Admonition> block renders a callout box for a note, tip, 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!"/>Inline content
Section titled “Inline content”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>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"/>