Skip to content

Callouts

Callouts use the Markdown ::: fence. All four are neutral greys here, because the design system reserves colour for state. They differ by their label and by the weight of their left rule, which grows with severity.

:::note
Notes carry extra context that is worth knowing.
:::
:::tip
Tips suggest a better way to do something.
:::
:::caution
Cautions warn about something that may surprise the reader.
:::
:::danger
Dangers warn about data loss or a security problem.
:::
:::note[A custom title]
You can replace the label with your own text.
:::

In an .mdx file you can also use the Aside component, which accepts the same types and a title.

import { Aside } from '@astrojs/starlight/components';
<Aside type="caution" title="Heads up">
Components can hold any Markdown.
</Aside>