Velocity X Components

Long-form

Admonition Block

The note / tip / warning / danger callout a docs page or technical article needs repeatedly, from one component instead of four. Left accent bar + icon + label so variants read apart at a glance without relying on colour alone, built for pages that stack several of these without feeling noisy.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add admonition-block

Built for astro.

Full docs for Admonition Block →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.1
Admonition Block

Props

NameTypeRequiredDefaultDescription
variant'note' | 'tip' | 'warning' | 'danger'No'note'
titlestringNo

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/admonition-block/AdmonitionBlock.astro

Using the Admonition Block component

Install it with velocityx add admonition-block. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Long-form.