Learn how to use asides in Starlight to display secondary information alongside a page’s main content.
To display secondary information alongside a page’s main content, use the <Aside> component.
Import
Section titled “Import”import { Aside } from '@astrojs/starlight/components';Display an aside (also known as “admonitions” or “callouts”) using the <Aside> component.
An <Aside> can have an optional type attribute, which controls the aside’s color, icon, and default title.
Use custom icons
Section titled “Use custom icons”Override the default aside icons by using the icon attribute set to the name of one of Starlight’s built-in icons.
<Aside> Props
Section titled “<Aside> Props”Implementation: Aside.astro
The <Aside> component accepts the following props:
type: 'note' | 'tip' | 'caution' | 'danger'
default: 'note'
The type of aside to display:
noteasides (the default) are blue and display an information icon.tipasides are purple and display a rocket icon.cautionasides are yellow and display a triangular warning icon.dangerasides are red and display an octagonal warning icon.
type: string
The title of the aside to display.
If title is not set, the default title for the current aside type will be used.
type: StarlightIcon
An aside can include an icon attribute set to the name of one of Starlight’s built-in icons.