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.
Source
Section titled “Source”:::noteNotes carry extra context that is worth knowing.:::
:::tipTips suggest a better way to do something.:::
:::cautionCautions warn about something that may surprise the reader.:::
:::dangerDangers warn about data loss or a security problem.:::
:::note[A custom title]You can replace the label with your own text.:::Result
Section titled “Result”Inside MDX
Section titled “Inside MDX”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>