StealThis .dev

Wiki — Callout / Admonition Blocks

A complete set of documentation callout blocks for a knowledge base, set in a clean white Aurora DB handbook shell with a left nav, a centered serif article column, and a right-rail table of contents. Five semantic variants — Note, Tip, Info, Warning, and Danger — each carry a left accent border, a tinted background, an inline SVG icon, a bold title, and rich body content with inline code and lists. A foldable details admonition collapses long supplementary content, a code-bearing Tip ships a copy button, and a live builder lets you pick a type and type a title and body to preview the exact markup.

Lab에서 열기
html css vanilla-js
Targets: JS HTML

Code

Callout / Admonition Blocks

A reusable family of admonition blocks rendered inside a realistic Aurora DB handbook page — a sticky top bar with search, a persistent left sidebar, a readable serif article column capped around 760px, and a sticky right-rail table of contents. Five semantic variants cover the common needs: a blue Note, a green Tip, a teal Info, an amber Warning, and a red Danger alert. Each one pairs a coloured left accent border and tinted background with an inline SVG icon, a bold title, and body content that can hold inline code, paragraphs, and lists — the colour itself carries the signal.

Beyond the static gallery, three interactions show the pattern in motion. A foldable details admonition collapses long supplementary content behind a keyboard-operable header (toggle with the mouse, Enter, or Space), with a chevron that rotates as it opens. A Tip that wraps a multi-line shell snippet carries a copy button that writes the command to the clipboard and confirms with a toast. The icons, roles, and tinting are all driven from a small token map so a Danger block correctly announces itself as an alert while the rest use note.

The live builder closes the loop: choose a type from the segmented radiogroup, type a title and body, and the preview re-renders the exact callout markup as you type — with a character counter, a reset, and a Copy markup button that hands you paste-ready HTML. The whole shell is responsive, collapsing the sidebar to a drawer with a scrim below 820px and dropping the TOC on narrow screens, down to 360px.

Illustrative UI only — fictional articles, products, and data.